toMap method

Map<String, dynamic> toMap()

Converts this ScannerException to a Map suitable for sending over the platform channel.

Implementation

Map<String, dynamic> toMap() {
  return {
    'result': result.value,
    'message': message,
  };
}