AppButtonConfig constructor

const AppButtonConfig({
  1. required Widget child,
  2. FutureOr<void> onPressed()?,
  3. FutureOr<void> onPressedDisabled()?,
  4. bool popFirst = false,
  5. int flex = 1,
  6. AppButtonType type = AppButtonType.elevated,
})

Implementation

const AppButtonConfig({
  required Widget child,
  this.onPressed,
  this.onPressedDisabled,
  this.popFirst = false,
  this.flex = 1,
  this.type = AppButtonType.elevated,
})  : _title = null,
      _child = child;