apply property
set
apply
(NikuInputDecoration? v)
Implementation
set apply(NikuInputDecoration? v) {
if (v == null) return;
if (labelStyle == null && v.labelStyle != null)
labelStyle = NikuTextStyle();
if (floatingLabelStyle == null && v.floatingLabelStyle != null)
floatingLabelStyle = NikuTextStyle();
if (helperStyle == null && v.helperStyle != null)
helperStyle = NikuTextStyle();
if (hintStyle == null && v.hintStyle != null) hintStyle = NikuTextStyle();
if (errorStyle == null && v.errorStyle != null)
errorStyle = NikuTextStyle();
if (prefixIconConstraints == null && v.prefixIconConstraints != null)
prefixIconConstraints = NikuBoxConstraints();
if (prefixStyle == null && v.prefixStyle != null)
prefixStyle = NikuTextStyle();
if (suffixIconConstraints == null && v.suffixIconConstraints != null)
suffixIconConstraints = NikuBoxConstraints();
if (suffixStyle == null && v.suffixStyle != null)
suffixStyle = NikuTextStyle();
if (counterStyle == null && v.counterStyle != null)
counterStyle = NikuTextStyle();
if (constraints == null && v.constraints != null)
constraints = NikuBoxConstraints();
icon = v.icon ?? icon;
label = v.label ?? label;
labelText = v.labelText ?? labelText;
labelStyle?.apply = v.labelStyle;
floatingLabelStyle?.apply = v.floatingLabelStyle ?? floatingLabelStyle;
helperText = v.helperText ?? helperText;
helperStyle?.apply = v.helperStyle ?? helperStyle;
helperMaxLines = v.helperMaxLines ?? helperMaxLines;
hintText = v.hintText ?? hintText;
hintStyle?.apply = v.hintStyle ?? hintStyle;
hintTextDirection = v.hintTextDirection ?? hintTextDirection;
hintMaxLines = v.hintMaxLines ?? hintMaxLines;
errorText = v.errorText ?? errorText;
errorStyle?.apply = v.errorStyle ?? errorStyle;
errorMaxLines = v.errorMaxLines ?? errorMaxLines;
floatingLabelBehavior = v.floatingLabelBehavior ?? floatingLabelBehavior;
isDense = v.isDense ?? isDense;
contentPadding?.apply = v.contentPadding ?? contentPadding;
isCollapsed = v.isCollapsed ?? isCollapsed;
prefixIcon = v.prefixIcon ?? prefixIcon;
prefixIconConstraints?.apply =
v.prefixIconConstraints ?? prefixIconConstraints;
prefix = v.prefix ?? prefix;
prefixText = v.prefixText ?? prefixText;
prefixStyle?.apply = v.prefixStyle ?? prefixStyle;
suffixIcon = v.suffixIcon ?? suffixIcon;
suffix = v.suffix ?? suffix;
suffixText = v.suffixText ?? suffixText;
suffixStyle?.apply = v.suffixStyle ?? suffixStyle;
suffixIconConstraints?.apply =
v.suffixIconConstraints ?? suffixIconConstraints;
counterText = v.counterText ?? counterText;
counter = v.counter ?? counter;
counterStyle?.apply = v.counterStyle ?? counterStyle;
filled = v.filled ?? filled;
fillColor = v.fillColor ?? fillColor;
focusColor = v.focusColor ?? focusColor;
hoverColor = v.hoverColor ?? hoverColor;
errorBorder = v.errorBorder ?? errorBorder;
focusedBorder = v.focusedBorder ?? focusedBorder;
focusedErrorBorder = v.focusedErrorBorder ?? focusedErrorBorder;
disabledBorder = v.disabledBorder ?? disabledBorder;
enabledBorder = v.enabledBorder ?? enabledBorder;
baseBorder = v.baseBorder ?? baseBorder;
enabled = v.enabled ?? enabled;
semanticCounterText = v.semanticCounterText ?? semanticCounterText;
alignLabelWithHint = v.alignLabelWithHint ?? alignLabelWithHint;
constraints?.apply = v.constraints ?? constraints;
}