call method
Implementation
@override
Object? call(Interpreter interpreter, List<Object?> arguments,
Map<Symbol, Object?> namedArguments) {
String? labelText;
var labelTextParsed = namedArguments[const Symbol('labelText')];
if (labelTextParsed != null) {
labelText = labelTextParsed as String;
}
String? hintText;
var hintTextParsed = namedArguments[const Symbol('hintText')];
if (hintTextParsed != null) {
hintText = hintTextParsed as String;
}
Widget? icon;
var iconParsed = namedArguments[const Symbol('icon')];
if (iconParsed != null) {
icon = iconParsed as Widget;
}
Widget? prefixIcon;
var prefixIconParsed = namedArguments[const Symbol('prefixIcon')];
if (prefixIconParsed != null) {
prefixIcon = prefixIconParsed as Widget;
}
Widget? suffixIcon;
var suffixIconParsed = namedArguments[const Symbol('suffixIcon')];
if (suffixIconParsed != null) {
suffixIcon = suffixIconParsed as Widget;
}
String? errorText;
var errorTextParsed = namedArguments[const Symbol('errorText')];
if (errorTextParsed != null) {
errorText = errorTextParsed as String;
}
String? prefixText;
var prefixTextParsed = namedArguments[const Symbol('prefixText')];
if (prefixTextParsed != null) {
prefixText = prefixTextParsed as String;
}
String? suffixText;
var suffixTextParsed = namedArguments[const Symbol('suffixText')];
if (suffixTextParsed != null) {
suffixText = suffixTextParsed as String;
}
String? helperText;
var helperTextParsed = namedArguments[const Symbol('helperText')];
if (helperTextParsed != null) {
helperText = helperTextParsed as String;
}
bool isCollapsed = false;
var isCollapsedParsed = namedArguments[const Symbol('isCollapsed')];
if (isCollapsedParsed != null) {
isCollapsed = isCollapsedParsed as bool;
}
bool enabled = true;
var enabledParsed = namedArguments[const Symbol('enabled')];
if (enabledParsed != null) {
enabled = enabledParsed as bool;
}
bool? filled;
var filledParsed = namedArguments[const Symbol('filled')];
if (filledParsed != null) {
filled = filledParsed as bool;
}
bool? isDense;
var isDenseParsed = namedArguments[const Symbol('isDense')];
if (isDenseParsed != null) {
isDense = isDenseParsed as bool;
}
Color? fillColor;
var fillColorParsed = namedArguments[const Symbol('fillColor')];
if (fillColorParsed != null) {
fillColor = fillColorParsed as Color;
}
Color? hoverColor;
var hoverColorParsed = namedArguments[const Symbol('hoverColor')];
if (hoverColorParsed != null) {
hoverColor = hoverColorParsed as Color;
}
TextStyle? labelStyle;
var labelStyleParsed = namedArguments[const Symbol('textStyle')];
if (labelStyleParsed != null) {
labelStyle = labelStyleParsed as TextStyle;
}
TextStyle? hintStyle;
var hintStyleParsed = namedArguments[const Symbol('hintStyle')];
if (hintStyleParsed != null) {
hintStyle = hintStyleParsed as TextStyle;
}
TextStyle? errorStyle;
var errorStyleParsed = namedArguments[const Symbol('errorStyle')];
if (errorStyleParsed != null) {
errorStyle = errorStyleParsed as TextStyle;
}
TextStyle? helperStyle;
var helperStyleParsed = namedArguments[const Symbol('helperStyle')];
if (helperStyleParsed != null) {
helperStyle = helperStyleParsed as TextStyle;
}
TextStyle? prefixStyle;
var prefixStyleParsed = namedArguments[const Symbol('prefixStyle')];
if (prefixStyleParsed != null) {
prefixStyle = prefixStyleParsed as TextStyle;
}
TextStyle? suffixStyle;
var suffixStyleParsed = namedArguments[const Symbol('suffixStyle')];
if (suffixStyleParsed != null) {
suffixStyle = suffixStyleParsed as TextStyle;
}
EdgeInsetsGeometry? contentPadding;
var contentPaddingParsed = namedArguments[const Symbol('contentPadding')];
if (contentPaddingParsed != null) {
contentPadding = contentPaddingParsed as EdgeInsetsGeometry;
}
InputBorder? border;
var borderParsed = namedArguments[const Symbol('border')];
if (borderParsed != null) {
border = borderParsed as InputBorder;
}
InputBorder? focusedBorder;
var focusedBorderParsed = namedArguments[const Symbol('focusedBorder')];
if (focusedBorderParsed != null) {
focusedBorder = focusedBorderParsed as InputBorder;
}
InputBorder? enabledBorder;
var enabledBorderParsed = namedArguments[const Symbol('enabledBorder')];
if (enabledBorderParsed != null) {
enabledBorder = enabledBorderParsed as InputBorder;
}
InputBorder? disabledBorder;
var disabledBorderParsed = namedArguments[const Symbol('disabledBorder')];
if (disabledBorderParsed != null) {
disabledBorder = disabledBorderParsed as InputBorder;
}
InputBorder? errorBorder;
var errorBorderParsed = namedArguments[const Symbol('errorBorder')];
if (errorBorderParsed != null) {
errorBorder = errorBorderParsed as InputBorder;
}
Widget? suffix;
var suffixParsed = namedArguments[const Symbol('suffix')];
if (suffixParsed != null) {
suffix = suffixParsed as Widget;
}
Widget? prefix;
var prefixParsed = namedArguments[const Symbol('prefix')];
if (prefixParsed != null) {
prefix = prefixParsed as Widget;
}
Widget? label;
var labelParsed = namedArguments[const Symbol('label')];
if (labelParsed != null) {
label = labelParsed as Widget;
}
BoxConstraints? prefixIconConstraints;
var prefixIconConstraintsParsed =
namedArguments[const Symbol('prefixIconConstraints')];
if (prefixIconConstraintsParsed != null) {
prefixIconConstraints = prefixIconConstraintsParsed as BoxConstraints;
}
BoxConstraints? suffixIconConstraints;
var suffixIconConstraintsParsed =
namedArguments[const Symbol('suffixIconConstraints')];
if (suffixIconConstraintsParsed != null) {
suffixIconConstraints = suffixIconConstraintsParsed as BoxConstraints;
}
TextDirection? hintTextDirection;
var hintTextDirectionParsed =
namedArguments[const Symbol('hintTextDirection')];
if (hintTextDirectionParsed != null) {
hintTextDirection = hintTextDirectionParsed as TextDirection;
}
return InputDecoration(
label: label,
contentPadding: contentPadding,
isCollapsed: isCollapsed,
enabled: enabled,
filled: filled,
isDense: isDense,
border: border,
focusedBorder: focusedBorder,
enabledBorder: enabledBorder,
disabledBorder: disabledBorder,
prefixIconConstraints: prefixIconConstraints,
suffixIconConstraints: suffixIconConstraints,
errorBorder: errorBorder,
fillColor: fillColor,
hoverColor: hoverColor,
labelStyle: labelStyle,
hintStyle: hintStyle,
hintTextDirection: hintTextDirection,
errorStyle: errorStyle,
helperStyle: helperStyle,
prefixStyle: prefixStyle,
suffixStyle: suffixStyle,
helperText: helperText,
labelText: labelText,
hintText: hintText,
icon: icon,
suffix: suffix,
prefix: prefix,
prefixIcon: prefixIcon,
suffixIcon: suffixIcon,
prefixText: prefixText,
suffixText: suffixText,
errorText: errorText);
}