convertFromBytes method Null safety

  1. @override
String convertFromBytes(
  1. Uint8Buffer messageData
)
override

Processes received data and returns it as a string.

Implementation

@override
String convertFromBytes(typed.Uint8Buffer messageData) {
  const decoder = Utf8Decoder();
  return decoder.convert(messageData.toList());
}