error_model.dart 294 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 class ErrorModel { final Object error; final StackTrace stack; ErrorModel({required this.error, required this.stack}); Map<String, dynamic> toMap() { return { 'error': error.toString(), 'stack': stack.toString(), 'key': error.runtimeType.toString() }; } }