mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-21 02:04:43 +00:00
14 lines
445 B
Dart
14 lines
445 B
Dart
typedef CloseAuth = Future<void> Function({String? route, dynamic arguments});
|
|
|
|
class AuthResponse {
|
|
AuthResponse({bool success = false, this.payload, required this.close, String? error})
|
|
: this.success = success,
|
|
this.error = success == false ? error ?? '' : null;
|
|
|
|
final bool success;
|
|
final dynamic payload;
|
|
final String? error;
|
|
final CloseAuth close;
|
|
}
|
|
|
|
typedef OnAuthenticationFinished = void Function(AuthResponse);
|