newValue property

  1. @override
FloatingSearchBarStyle newValue

Implementation

@override
FloatingSearchBarStyle get newValue {
  final theme = Theme.of(context);
  final direction = Directionality.of(context);

  return FloatingSearchBarStyle(
    height: widget.height,
    elevation: widget.elevation,
    maxWidth: widget.width,
    openMaxWidth: widget.openWidth,
    axisAlignment: widget.axisAlignment ?? 0.0,
    openAxisAlignment:
        widget.openAxisAlignment ?? widget.axisAlignment ?? 0.0,
    backgroundColor: widget.backgroundColor ?? theme.cardColor,
    shadowColor: widget.shadowColor ?? Colors.black45,
    backdropColor: widget.backdropColor ??
        widget.transition?.backdropColor ??
        Colors.black26,
    border: widget.border ?? BorderSide.none,
    borderRadius: widget.borderRadius ?? BorderRadius.circular(4),
    margins: (widget.margins ??
            EdgeInsets.fromLTRB(
                8, MediaQuery.of(context).viewPadding.top + 6, 8, 0))
        .resolve(direction),
    padding: widget.padding?.resolve(direction) ??
        const EdgeInsets.symmetric(horizontal: 12),
    insets: widget.insets?.resolve(direction) ??
        const EdgeInsets.symmetric(horizontal: 8),
  );
}