ZButton constructor

const ZButton({
  1. Key? key,
  2. String? text,
  3. bool enable = true,
  4. VoidCallback? onPressed,
  5. Color? bgColor,
  6. Color textColor = Colors.white,
  7. bool isDark = false,
})

Implementation

const ZButton({
  Key? key,
  this.text,
  this.enable = true,
  this.onPressed,
  this.bgColor,
  this.textColor = Colors.white,
  this.isDark = false,
}) : super(key: key);