Skip to content

Commit

Permalink
Fixed forced null
Browse files Browse the repository at this point in the history
  • Loading branch information
Sominemo committed Mar 6, 2021
1 parent cb55a78 commit b28704a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.4.1
- Bugs fixed

## 1.4.0
- Null safety
- Bugs fixed
Expand Down
4 changes: 2 additions & 2 deletions lib/src/money.dart
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ class CurrencyInfo {
/// Shortcut to create conversion objects with same sell rate and currency rate
factory CurrencyInfo.cross(
Currency currencyA, Currency currencyB, double rateCross,
{MoneyRounding? rounding}) =>
{MoneyRounding rounding = MoneyRounding.bank}) =>
CurrencyInfo(currencyA, currencyB, rateCross, rateCross,
rounding: rounding!);
rounding: rounding);
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: >
Supports getting currencies and grabbing statement
version: 1.4.0
version: 1.4.1
homepage: https://github.com/Sominemo/monobank_api

environment:
Expand Down

0 comments on commit b28704a

Please sign in to comment.