getNullableIntProperty method

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

Implementation

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