SimpleButtonWidget constructor

const SimpleButtonWidget({
  1. Key? key,
  2. String? text,
  3. void onPressed()?,
  4. Widget? child,
  5. bool enabled = true,
  6. double? width = 250,
  7. double? height = 36,
  8. Color? color,
  9. Color? borderColor,
  10. HighlightController? highlightController,
  11. FocusNode? focusNode,
})

Implementation

const SimpleButtonWidget({
  Key? key,
  this.text,
  this.onPressed,
  this.child,
  this.enabled = true,
  this.width = 250,
  this.height = 36,
  this.color,
  this.borderColor,
  this.highlightController,
  this.focusNode,
})  : assert(
          (child != null && text == null) || (child == null && text != null)),
      super(key: key);