DanUIDragableFAB constructor

const DanUIDragableFAB({
  1. Key? key,
  2. required Widget child,
  3. required Offset initialOffset,
  4. required VoidCallback onPressed,
  5. Icon? icon,
  6. Color? color,
  7. Gradient? gradient,
  8. bool useDragableIcon = false,
})

Implementation

const DanUIDragableFAB({
  super.key,
  required this.child,
  required this.initialOffset,
  required this.onPressed,
  this.icon,
  this.color,
  this.gradient,
  this.useDragableIcon = false,
}) : assert(!(color != null && gradient != null), 'Cannot set both color and gradient at the same time.');