AppButton constructor

const AppButton({
  1. Key? key,
  2. required void onPressed(),
  3. required String text,
  4. double? width,
  5. Color backgroundColor = AppColors.blue,
  6. bool isCancelButton = false,
})

Implementation

const AppButton(
    {super.key,
    required this.onPressed,
    required this.text,
    this.width,
    this.backgroundColor = AppColors.blue,
    this.isCancelButton = false});