2023-02-09 13:06:23 +00:00
|
|
|
import "package:photos/ui/components/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.
|
2023-02-09 13:06:23 +00:00
|
|
|
final ButtonAction? action;
|
|
|
|
final Exception? exception;
|
2023-02-10 10:31:40 +00:00
|
|
|
ButtonResult([this.action, this.exception]);
|
2023-02-09 13:06:23 +00:00
|
|
|
}
|