DiamondFab constructor
Created the diamond shaped floating action button.
The elevation
, highlightElevation
, mini
, and notchMargin
arguments must not be null.
The shape property can not be set unlike the FloatingActionButton
.
Implementation
DiamondFab({
Key key,
this.child,
this.notchMargin: 8.0,
this.backgroundcolor,
@required this.onPressed,
this.foregroundColor,
this.tooltip,
this.heroTag: const _DefaultHeroTag(),
this.highlightElevation: 12.0,
this.mini: false,
this.elevation: 6.0,
}) : assert(elevation != null),
assert(highlightElevation != null),
assert(mini != null),
assert(notchMargin != null),
_sizeConstraints = mini ? _kMiniSizeConstraints : _kSizeConstraints,
super(key: key);