OptionField<T> constructor

const OptionField<T>({
  1. required String name,
  2. String? description,
  3. IconData icon = Icons.gear_six_fill,
  4. required T defaultValue,
  5. required T? reader(),
  6. required void writer(
    1. T? t
    ),
  7. bool shouldShow(
    1. BuildContext context
    ) = _defShouldShow,
})

Implementation

const OptionField({
  required super.name,
  super.description,
  super.icon,
  required this.defaultValue,
  required this.reader,
  required this.writer,
  super.shouldShow = _defShouldShow,
});