resolveWidget method

MacosTextFieldThemeData resolveWidget(
  1. MacosTextField widget
)

Implementation

MacosTextFieldThemeData resolveWidget(MacosTextField widget) {
  return MacosTextFieldThemeData.raw(
    decoration: widget.decoration ??
        this.decoration ??
        _kDefaultRoundedBorderDecoration,
    focusedDecoration: widget.focusedDecoration ??
        this.focusedDecoration ??
        _kDefaultFocusedBorderDecoration,
    padding: widget.padding ?? this.padding ?? const EdgeInsets.all(6.0),
    placeholderStyle: (this.placeholderStyle ?? _kDefaultPlaceholderStyle)
        .merge(widget.placeholderStyle),
    style: (this.style ?? _kDefaultTextStyle).merge(widget.style),
    selectionColor: widget.selectionColor ?? this.selectionColor,
    strutStyle: widget.strutStyle ?? this.strutStyle,
    textAlign: widget.textAlign ?? this.textAlign ?? TextAlign.start,
    textAlignVertical: widget.textAlignVertical ?? this.textAlignVertical,
    obscuringCharacter:
        widget.obscuringCharacter ?? this.obscuringCharacter ?? '•',
    smartDashesType: widget.smartDashesType ?? this.smartDashesType,
    smartQuotesType: widget.smartQuotesType ?? this.smartQuotesType,
    cursorWidth: widget.cursorWidth ?? this.cursorWidth ?? 2.0,
    cursorHeight: widget.cursorHeight ?? this.cursorHeight,
    cursorRadius: widget.cursorRadius ??
        this.cursorRadius ??
        const Radius.circular(2.0),
    scrollPadding: widget.scrollPadding ??
        this.scrollPadding ??
        const EdgeInsets.all(20.0),
    cursorColor: widget.cursorColor ?? this.cursorColor,
    selectionHeightStyle: widget.selectionHeightStyle ??
        this.selectionHeightStyle ??
        ui.BoxHeightStyle.tight,
    selectionWidthStyle: widget.selectionWidthStyle ??
        this.selectionWidthStyle ??
        ui.BoxWidthStyle.tight,
  );
}