CustomPrimaryButton constructor

const CustomPrimaryButton({
  1. Key? key,
  2. required String label,
  3. required VoidCallback onPressed,
  4. Color color = const Color(0xFF0054A6),
  5. Color textColor = Colors.white,
  6. Color? borderColor,
  7. bool isLoading = false,
})

Implementation

const CustomPrimaryButton({
  Key? key,
  required this.label,
  required this.onPressed,
  this.color = const Color(0xFF0054A6),
  this.textColor = Colors.white,
  this.borderColor,
  this.isLoading = false,
}) : super(key: key);