getDecimalProperty method

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

Implementation

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