CloneField<T> constructor
CloneField<T> (
- String name, {
- CloneGetterFunction? getter,
- CloneSetterFunction? setter,
- T? defaultValue,
The CloneField constructor
Note: need to set 'getter' and 'setter' as late since some functions might not be const and are not definable within the constructor parameters
Implementation
CloneField(this.name,
{CloneGetterFunction? getter,
CloneSetterFunction? setter,
this.defaultValue}) {
this.getter = getter ?? () => null;
this.setter = setter ?? (_) {};
}