OptionField<T> constructor
const
OptionField<T> ({
- required String name,
- String? description,
- IconData icon = Icons.gear_six_fill,
- required T defaultValue,
- required T? reader(),
- required void writer(
- T? t
- bool shouldShow(
- BuildContext context
Implementation
const OptionField({
required super.name,
super.description,
super.icon,
required this.defaultValue,
required this.reader,
required this.writer,
super.shouldShow = _defShouldShow,
});