CAKE-185 | added title property to TradeIsCreatedFailure class; applied title property in the createTrade() method (exchange_view_model.dart); applied title property as alert title in the exchange_page.dart

This commit is contained in:
OleksandrSobol
2020-12-02 21:51:06 +02:00
parent ca0c0d1ad6
commit 458079d3ae
3 changed files with 9 additions and 3 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ class TradeIsCreatedSuccessfully extends ExchangeTradeState {
}
class TradeIsCreatedFailure extends ExchangeTradeState {
TradeIsCreatedFailure({@required this.error});
TradeIsCreatedFailure({@required this.title, @required this.error});
final String title;
final String error;
}