width property
int
width
Gets the image width.
Throws StateError if the TensorImage never loads data. and ArgumentError if the container data is corrupted.
Implementation
int get width {
if (_container == null) {
throw new StateError("No image has been loaded yet.");
}
return _container!.width;
}