PrimaryButton constructor

const PrimaryButton({
  1. Key? key,
  2. required dynamic onPress(),
  3. required String title,
  4. bool disable = false,
  5. Color backgroundColor = const Color(0xff2B6BD8),
  6. Color textColor = Colors.white,
})

Implementation

const PrimaryButton({Key? key, required this.onPress, required this.title, this.disable = false, this.backgroundColor = const Color(0xff2B6BD8), this.textColor = Colors.white}) : super(key: key);