mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 01:47:41 +00:00
21 lines
No EOL
562 B
Dart
21 lines
No EOL
562 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:cake_wallet/exchange/trade.dart';
|
|
|
|
abstract class ExchangeTradeState {}
|
|
|
|
class ExchangeTradeStateInitial extends ExchangeTradeState {}
|
|
|
|
class TradeIsCreating extends ExchangeTradeState {}
|
|
|
|
class TradeIsCreatedSuccessfully extends ExchangeTradeState {
|
|
TradeIsCreatedSuccessfully({@required this.trade});
|
|
|
|
final Trade trade;
|
|
}
|
|
|
|
class TradeIsCreatedFailure extends ExchangeTradeState {
|
|
TradeIsCreatedFailure({@required this.title, @required this.error});
|
|
|
|
final String title;
|
|
final String error;
|
|
} |