FilledButton constructor

FilledButton({
  1. Key? key,
  2. required String text,
  3. ButtonSize size = ButtonSize.l,
  4. VoidCallback? onClick,
  5. bool enabled = true,
  6. ButtonColorType colorType = ButtonColorType.primary,
})

Implementation

FilledButton({
  super.key,
  required String text,
  this.size = ButtonSize.l,
  this.onClick,
  this.enabled = true,
  this.colorType = ButtonColorType.primary,
}) : content = TextOnlyContent(text);