AppButtonConfig.text constructor

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

Implementation

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