setTextFieldToM3 method
Set TextField values to Flutter M3 defaults.
Implementation
Future<void> setTextFieldToM3([bool doNotify = true]) async {
setInputDecoratorSchemeColorLight(null, false);
setInputDecoratorSchemeColorDark(null, false);
setInputDecoratorBorderSchemeColorLight(null, false);
setInputDecoratorBorderSchemeColorDark(null, false);
setInputDecoratorBackgroundAlphaDark(null, false);
setInputDecoratorBackgroundAlphaLight(null, false);
setInputDecoratorIsFilled(true, false);
setInputDecoratorBorderRadius(null, false);
setInputDecoratorBorderType(FlexInputBorderType.underline, false);
setInputDecoratorBorderWidth(null, false);
setInputDecoratorFocusedBorderWidth(null, false);
setInputDecoratorBorderRadius(null, false);
setInputDecoratorFocusedHasBorder(true, false);
setInputDecoratorUnfocusedHasBorder(true, false);
setInputDecoratorUnfocusedBorderIsColored(false, false);
setInputDecoratorPrefixIconSchemeColor(null, false);
setInputDecoratorPrefixIconDarkSchemeColor(null, false);
// Only notify at end, if asked to do so, to do so is default.
if (doNotify) notifyListeners();
}