decodeMessage method

  1. @override
String? decodeMessage(
  1. ByteData? message
)
override

Decodes the specified message from binary.

Returns null if the message is null.

Implementation

@override
String? decodeMessage(ByteData? message) {
  if (message == null) {
    return null;
  }
  return utf8.decode(Uint8List.sublistView(message));
}