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. @Deprecated('Please use expanded instead. ' 'Deprecated in 0.15.0') bool? initiallyExpanded,
  10. FocusNode? focusNode,
  11. 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,
  @Deprecated('Please use expanded instead. ' 'Deprecated in 0.15.0') bool? initiallyExpanded,
  this.focusNode,
  super.key,
}) : expanded = expanded ?? initiallyExpanded ?? label != null;