toUint32List method Null safety

Uint32List? toUint32List(
  1. [int offset = 0]
)

This assumes buffer is a Typed

Implementation

Uint32List? toUint32List([int offset = 0]) {
  if (buffer is TypedData) {
    final b = buffer as TypedData;
    return Uint32List.view(b.buffer, b.offsetInBytes + this.offset + offset);
  }
  return null;
}