File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1+ # 18.2.0
2+
3+ ## Features
4+
5+ - Allowed overwriting default value on reset. Added an ` overwriteDefaultValue ` parameter to the
6+ ` FormControl.reset() ` method. When ` overwriteDefaultValue ` is ` true ` , the value passed to
7+ ` reset() ` becomes the new default value for the control.
8+ - Enhanced ` FormControl ` reset method. Introduced a ` nonNullable ` property to the ` FormControl `
9+ constructor to control the behavior of the ` reset() ` method. When ` nonNullable ` is ` true `
10+ (the default), calling ` reset() ` without a value will reset the control to its initial value. When
11+ ` nonNullable ` is ` false ` , calling ` reset() ` without a value will reset the control to ` null ` .
12+ - Exposed ` defaultValue ` of the ` FormControl ` .
13+
114# 18.1.2
215
316## Fixes
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ dependencies:
8888 flutter :
8989 sdk : flutter
9090
91- reactive_forms : ^18.1.2
91+ reactive_forms : ^18.2.0
9292` ` `
9393
9494Then, run the command ` flutter packages get` in the console.
Original file line number Diff line number Diff line change 11name : reactive_forms
22description : This is a model-driven approach to handling form inputs and validations, heavily inspired in Angular Reactive Forms.
3- version : 18.1.2
3+ version : 18.2.0
44homepage : " https://github.com/joanpablo/reactive_forms"
55
66environment :
You can’t perform that action at this time.
0 commit comments