buildWithChild method
A build method that receives an extra child
parameter.
This method may be called with a child
different from the parameter
passed to the constructor of SingleChildStatelessModifier.
It may also be called again with a different child
, without this widget
being recreated.
Implementation
@override
Widget buildWithChild(BuildContext context, Widget? child) {
return RawMaterialButton(
key: modifierKey,
animationDuration: animationDuration,
autofocus: autofocus,
clipBehavior: clipBehavior,
constraints: constraints,
disabledElevation: disabledElevation,
elevation: elevation,
enableFeedback: enableFeedback,
fillColor: fillColor,
focusColor: focusColor,
focusElevation: focusElevation,
focusNode: focusNode,
highlightColor: highlightColor,
highlightElevation: highlightElevation,
hoverColor: hoverColor,
hoverElevation: hoverElevation,
materialTapTargetSize: materialTapTargetSize,
mouseCursor: mouseCursor,
onHighlightChanged: onHighlightChanged,
onLongPress: onLongPress,
padding: padding,
shape: shape,
splashColor: splashColor,
textStyle: textStyle,
visualDensity: visualDensity,
onPressed: onPressed,
child: child,
);
}