ZetaFAB constructor

const ZetaFAB({
  1. String? label,
  2. ScrollController? scrollController,
  3. VoidCallback? onPressed,
  4. ZetaFabType type = ZetaFabType.primary,
  5. ZetaFabSize size = ZetaFabSize.small,
  6. ZetaWidgetBorder shape = ZetaWidgetBorder.full,
  7. IconData icon = ZetaIcons.add,
  8. bool? expanded,
  9. FocusNode? focusNode,
  10. Key? key,
})

Constructs ZetaFAB.

Implementation

const ZetaFAB({
  this.label,
  this.scrollController,
  this.onPressed,
  this.type = ZetaFabType.primary,
  this.size = ZetaFabSize.small,
  this.shape = ZetaWidgetBorder.full,
  this.icon = ZetaIcons.add,
  bool? expanded,
  this.focusNode,
  super.key,
}) : expanded = expanded ?? label != null;