getNullableDecimalProperty method

Property<Decimal?> getNullableDecimalProperty(
  1. String name, {
  2. Decimal? defaultValue() = defaultNullableDecimal,
  3. bool isImmutable = true,
})

Implementation

Property<Decimal?> getNullableDecimalProperty(
  String name, {
  Decimal? Function() defaultValue = defaultNullableDecimal,
  bool isImmutable = true,
}) {
  return getNullableProperty<Decimal>(
    name,
    (s) => Decimal.tryParse(s) ?? defaultDecimal(),
    defaultValue,
    isImmutable: isImmutable,
  );
}