ButtonState constructor

const ButtonState({
  1. required StateId id,
  2. required Color color,
  3. Color? foregroundColor,
  4. Widget? child,
  5. StateWidgetBuilder? builder,
  6. bool isCompact = true,
})

Implementation

const ButtonState({
  required this.id,
  required this.color,
  this.foregroundColor,
  this.child,
  this.builder,
  this.isCompact = true,
}) : assert(child != null || builder != null, 'Provee child o builder (al menos uno).');