getIntProperty method

Property<int> getIntProperty(
  1. String name, {
  2. int defaultValue() = defaultInt,
  3. bool isImmutable = true,
})

Implementation

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