FloatingActionWheel constructor
FloatingActionWheel({
- Key? key,
- required List<
WheelButton> buttons, - WheelAnimationType animationType = WheelAnimationType.around,
- WheelSize wheelSize = WheelSize.wheel_medium_120,
- bool defaultPressed = false,
- double angleOffset = 90.0,
- double visiblePart = 1,
- bool separated = false,
- Color? fabBackgroundColor,
- Color? fabForegroundColor,
- Object? fabHeroTag,
- double fabElevation = 0,
Implementation
FloatingActionWheel(
{Key? key, required this.buttons, this.animationType = WheelAnimationType.around,
this.wheelSize = WheelSize.wheel_medium_120,this.defaultPressed=false,
this.angleOffset = 90.0, this.visiblePart = 1, this.separated = false,
this.fabBackgroundColor,this.fabForegroundColor,this.fabHeroTag,this.fabElevation=0
}):
assert( buttons.isNotEmpty,'WheelButton list should not be empty'),
assert(visiblePart >= 0.1 && visiblePart <= 1, 'visiblePart can only range from 0.1 to 1 (percentage)'),
assert(angleOffset >= 0 && angleOffset <= 360, 'angleOffset should only be a degree (0-360)'),
super(key: key);