prepareMessage method

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

Will be called

Implementation

@override
Future<Uint8List?> prepareMessage(BuildContext? context) async {
  final http.Client client = _httpClient ?? http.Client();
  return (await client.get(Uri.parse(url), headers: headers)).bodyBytes;
}