cake_wallet/lib/exchange/limits_state.dart

21 lines
473 B
Dart
Raw Normal View History

2020-01-04 19:31:52 +00:00
import 'package:flutter/foundation.dart';
2020-09-21 11:50:26 +00:00
import 'package:cake_wallet/exchange/limits.dart';
2020-01-04 19:31:52 +00:00
abstract class LimitsState {}
class LimitsInitialState extends LimitsState {}
class LimitsIsLoading extends LimitsState {}
class LimitsLoadedSuccessfully extends LimitsState {
LimitsLoadedSuccessfully({@required this.limits});
2020-01-08 12:26:34 +00:00
final Limits limits;
2020-01-04 19:31:52 +00:00
}
class LimitsLoadedFailure extends LimitsState {
LimitsLoadedFailure({@required this.error});
2020-01-08 12:26:34 +00:00
final String error;
2020-01-04 19:31:52 +00:00
}