dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
466 B
23 lines
466 B
import 'package:meta/meta.dart' show immutable; |
|
|
|
enum ImageSaverExceptionType { |
|
accessDenied, |
|
notEnoughSpace, |
|
notSupportedFormat, |
|
unexpected, |
|
unknown; |
|
} |
|
|
|
@immutable |
|
class ImageSaverException implements Exception { |
|
const ImageSaverException({ |
|
required this.message, |
|
required this.type, |
|
}); |
|
|
|
final String message; |
|
final ImageSaverExceptionType type; |
|
|
|
@override |
|
String toString() => 'Error while saving image, error type: ${type.name}'; |
|
}
|
|
|