SpeedDialOption constructor

SpeedDialOption({
  1. required Widget text,
  2. required VoidCallback onPressed,
  3. required Widget icon,
  4. Color iconclosedForegroundColor = Colors.white,
  5. Color iconopenedForegroundColor = Colors.white,
  6. Color iconclosedBackgroundColor = Colors.blue,
  7. Color iconopenedBackgroundColor = Colors.blue,
  8. double iconclosedElevation = 0,
  9. double iconopenedElevation = 0,
})

Implementation

SpeedDialOption({
  required this.text,
  required this.onPressed,
  required this.icon,
  this.iconclosedForegroundColor = Colors.white,
  this.iconopenedForegroundColor = Colors.white,
  this.iconclosedBackgroundColor = Colors.blue,
  this.iconopenedBackgroundColor = Colors.blue,
  this.iconclosedElevation = 0,
  this.iconopenedElevation = 0,
});