DiamondFab constructor

DiamondFab({Key key, Widget child, double notchMargin: 8.0, Color backgroundcolor, @required VoidCallback onPressed, Color foregroundColor, String tooltip, Object heroTag: const _DefaultHeroTag(), double highlightElevation: 12.0, bool mini: false, double elevation: 6.0 })

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);