ente/lib/models/search/button_result.dart

12 lines
450 B
Dart
Raw Normal View History

import 'package:photos/ui/components/buttons/button_widget.dart';
class ButtonResult {
2023-02-10 10:31:40 +00:00
///action can be null when action for the button that is returned when popping
///the widget (dialog, actionSheet) which uses a ButtonWidget isn't
///relevant/useful and so is not assigned a value when an instance of
///ButtonWidget is created.
final ButtonAction? action;
final Exception? exception;
2023-02-10 10:31:40 +00:00
ButtonResult([this.action, this.exception]);
}