FButton<T extends App<T>> constructor

FButton<T extends App<T>>(
  1. T app, {
  2. String? key,
  3. Vector2D? position,
  4. FButtonStyle buttonStyle = .flat,
  5. FButtonVariant buttonVariant = .primary,
  6. void onClickFn(
    1. FButton<T> self
    )?,
  7. void onDoubleClickFn(
    1. FButton<T> self
    )?,
  8. void onClickHoldFn(
    1. FButton<T> self,
    2. int framesHeld,
    3. double secondsHeld
    )?,
  9. bool usePendingSingleClickMethod = false,
  10. required FWidget<T> child,
})

Implementation

FButton(super.app, {
  super.key,
  Vector2D? position,
  this.buttonStyle = .flat,
  this.buttonVariant = .primary,
  this.onClickFn,
  this.onDoubleClickFn,
  this.onClickHoldFn,
  this.usePendingSingleClickMethod = false,
  required FWidget<T> child,
}) : super(child: child);