ente/lib/ui/components/models/button_result.dart
2023-04-08 17:10:10 +05:30

12 lines
453 B
Dart

import 'package:ente_auth/ui/components/buttons/button_widget.dart';
class ButtonResult {
///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;
ButtonResult([this.action, this.exception]);
}