FloatingActionWheel constructor

FloatingActionWheel({
  1. Key? key,
  2. required List<WheelButton> buttons,
  3. WheelAnimationType animationType = WheelAnimationType.around,
  4. WheelSize wheelSize = WheelSize.wheel_medium_120,
  5. bool defaultPressed = false,
  6. double angleOffset = 90.0,
  7. double visiblePart = 1,
  8. bool separated = false,
  9. Color? fabBackgroundColor,
  10. Color? fabForegroundColor,
  11. Object? fabHeroTag,
  12. 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);