RothkoIconButton constructor

RothkoIconButton({
  1. bool disabled = false,
  2. bool transparent = false,
  3. Color rothkoIconColor = RothkoColor.kLightNeutralLighten2,
  4. Color backgroundColor = RothkoColor.kPrimaryBase,
  5. IconButtonSize size = IconButtonSize.NORMAL,
  6. bool? loading = false,
  7. bool? hasBeenPressed = false,
  8. Widget? buttonWidget,
  9. IconData? buttonIcon,
  10. void onPressed()?,
})

Implementation

RothkoIconButton(
    {this.disabled = false,
    this.transparent = false,
    this.rothkoIconColor = RothkoColor.kLightNeutralLighten2,
    this.backgroundColor = RothkoColor.kPrimaryBase,
    this.size = IconButtonSize.NORMAL,
    this.loading = false,
    this.hasBeenPressed = false,
    this.buttonWidget,
    this.buttonIcon,
    this.onPressed})
    : assert(buttonIcon != null || buttonWidget != null);