prepareMessage method

  1. @override
Future<ByteData?> prepareMessage(
  1. BuildContext? context
)
override

Will be called

Implementation

@override
Future<ByteData?> prepareMessage(BuildContext? context) {
  return _resolveBundle(context).load(
    packageName == null ? assetName : 'packages/$packageName/$assetName',
  );
}