FormMapper constructor
FormMapper({
- required dynamic instance,
- bool twoWay = false,
Create a new FormMapper
instance the source instance whose fields will be bound
twoWay if true, modifications will immediately modify the instance
Implementation
FormMapper({required this.instance, this.twoWay=false}) {
transformer = Transformer(operations);
type = TypeDescriptor.forType(instance.runtimeType);
if ( type.isImmutable())
rootProperty = RootProperty(mapper: this);
}