DefaultButtonView constructor

const DefaultButtonView({
  1. Key? key,
  2. required VoidCallback? callback,
  3. String? title,
  4. double? borderRadius,
  5. bool isLoading = false,
  6. Color? customBackgroundColor,
  7. Widget? customChild,
  8. bool isError = false,
})

Implementation

const DefaultButtonView({
  super.key,
  required this.callback,
  this.title,
  this.borderRadius,
  this.isLoading = false,
  this.customBackgroundColor,
  this.customChild,
  this.isError = false,
}) : type = ButtonType.normal,
     customTextColor = null,
     borderColor = null,
     borderWidth = null;