From b28704aafa976017eabd4c385faaa54419615aa8 Mon Sep 17 00:00:00 2001 From: Sominemo Date: Sat, 6 Mar 2021 13:35:45 +0200 Subject: [PATCH] Fixed forced null --- CHANGELOG.md | 3 +++ lib/src/money.dart | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eac0508..49be4d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.4.1 +- Bugs fixed + ## 1.4.0 - Null safety - Bugs fixed diff --git a/lib/src/money.dart b/lib/src/money.dart index 1d73926..da977ca 100644 --- a/lib/src/money.dart +++ b/lib/src/money.dart @@ -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); } diff --git a/pubspec.yaml b/pubspec.yaml index e83a2b0..f187b18 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: