provideSvg method

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

Provides the SVG string from the loaded ByteData.

Implementation

@override
String provideSvg(ByteData? message) {
  if (message == null) {
    return ''; // Return an empty string if message is null
  }
  return utf8.decode(message.buffer.asUint8List(), allowMalformed: true);
}