getContentBytes method

  1. @override
Uint8List getContentBytes()
override

Returns the binary content of the asset (same as _contentBytes).

Implementation

@override
Uint8List getContentBytes() {
  if(exists()) {
    return _asset!.getContentBytes();
  }

  throw _throwIfNotFound();
}