data property
Uint8List
get
data
Get a view of native data.
The returned Uint8List is a view over the Mat's native memory, NOT a
copy: it becomes dangling (invalid) once this Mat is disposed or its
underlying buffer is reallocated. Copy the view (Uint8List.fromList(data))
if you need data that outlives the Mat.
Implementation
Uint8List get data => dataPtr.asTypedList(total * elemSize);