FAB constructor

FAB({
  1. String icon = 'add',
  2. Object? label,
  3. ColorToken? backgroundColor,
  4. ColorToken? foregroundColor,
  5. Object? onTap,
  6. String? name,
  7. Object? visible,
})

Implementation

FAB({
  this.icon = 'add',
  Object? label,
  this.backgroundColor,
  this.foregroundColor,
  Object? onTap,
  String? name,
  Object? visible,
}) : label = normalizeNullableExpression(label),
     onTap = normalizeActionSequence(onTap, parameterName: 'onTap'),
     super(name: name, visible: _normalizeVisibility(visible));