first commit
This commit is contained in:
9
lib/flutterlib/form_field_controller.dart
Normal file
9
lib/flutterlib/form_field_controller.dart
Normal file
@@ -0,0 +1,9 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
class FormFieldController<T> extends ValueNotifier<T?> {
|
||||
FormFieldController(this.initialValue) : super(initialValue);
|
||||
|
||||
final T? initialValue;
|
||||
|
||||
void reset() => value = initialValue;
|
||||
}
|
||||
Reference in New Issue
Block a user