AppButtonConfig.child constructor

const AppButtonConfig.child(
  1. 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.child(
  Widget child, {
  this.onPressed,
  this.onPressedDisabled,
  this.popFirst = false,
  this.flex = 1,
  this.type = AppButtonType.elevated,
})  : _child = child,
      _title = null;