dart-libpray icon indicating copy to clipboard operation
dart-libpray copied to clipboard

Added @nullable to some property & modified example

Open bhangun opened this issue 4 years ago • 0 comments

  • Added @nullable i got this when some PrayerCalculationSettings set or has null value. So i added @nullable to some property for null safety.
Tried to build class "PrayerCalculationSettings" but nested builder for field "imsakParameter" 
threw: Tried to construct class "PrayerCalculationParameter" with null field "value". 
This is forbidden; to allow it, mark "value" with @nullable.
  • Modified Example I was suffer with existing example which PrayerCalculationSettingsBuilder doesn't override default value so it cause null value. So i copy default value to the example. Hope others could get better experience when using this example library.

bhangun avatar Dec 01 '20 08:12 bhangun