decodeInput method

  1. @override
Uint8List decodeInput(
  1. MethodCall data
)
override

decode the input of the channel to bytes

Implementation

@override
Uint8List decodeInput(MethodCall data) {
  String js = data.toJson();
  return Uint8List.fromList(utf8.encode(js));
}