NZFloatingActionButton constructor

const NZFloatingActionButton({
  1. Key? key,
  2. required VoidCallback onPressed,
  3. Widget? icon,
  4. String? label,
  5. ImageProvider<Object>? image,
  6. NZFloatingActionButtonType type = NZFloatingActionButtonType.standard,
  7. bool draggable = false,
  8. Offset initialPosition = const Offset(20, 20),
  9. ScrollController? scrollController,
  10. Color? backgroundColor,
  11. Color? foregroundColor,
  12. Object? heroTag,
  13. String? tooltip,
})

Implementation

const NZFloatingActionButton({
  super.key,
  required this.onPressed,
  this.icon,
  this.label,
  this.image,
  this.type = NZFloatingActionButtonType.standard,
  this.draggable = false,
  this.initialPosition = const Offset(20, 20),
  this.scrollController,
  this.backgroundColor,
  this.foregroundColor,
  this.heroTag,
  this.tooltip,
});