ButtonStyle constructor Null safety
- {MaterialStateProperty<
TextStyle?> ? textStyle, - MaterialStateProperty<
Color?> ? backgroundColor, - MaterialStateProperty<
Color?> ? foregroundColor, - MaterialStateProperty<
Color?> ? overlayColor, - MaterialStateProperty<
Color?> ? shadowColor, - MaterialStateProperty<
Color?> ? surfaceTintColor, - MaterialStateProperty<
double?> ? elevation, - MaterialStateProperty<
EdgeInsetsGeometry?> ? padding, - MaterialStateProperty<
Size?> ? minimumSize, - MaterialStateProperty<
Size?> ? fixedSize, - MaterialStateProperty<
Size?> ? maximumSize, - MaterialStateProperty<
double?> ? iconSize, - MaterialStateProperty<
BorderSide?> ? side, - MaterialStateProperty<
OutlinedBorder?> ? shape, - MaterialStateProperty<
MouseCursor?> ? mouseCursor, - VisualDensity? visualDensity,
- MaterialTapTargetSize? tapTargetSize,
- Duration? animationDuration,
- bool? enableFeedback,
- AlignmentGeometry? alignment,
- InteractiveInkFeatureFactory? splashFactory}
Create a ButtonStyle.
Implementation
const ButtonStyle({
this.textStyle,
this.backgroundColor,
this.foregroundColor,
this.overlayColor,
this.shadowColor,
this.surfaceTintColor,
this.elevation,
this.padding,
this.minimumSize,
this.fixedSize,
this.maximumSize,
this.iconSize,
this.side,
this.shape,
this.mouseCursor,
this.visualDensity,
this.tapTargetSize,
this.animationDuration,
this.enableFeedback,
this.alignment,
this.splashFactory,
});