SonrButton constructor Null safety

const SonrButton(
  1. {Key? key,
  2. ButtonVariant variant = ButtonVariant.blue,
  3. ErrorCallback? onError,
  4. required VoidCallback onPressed,
  5. required String label}
)

Implementation

const SonrButton({
  Key? key,
  this.variant = ButtonVariant.blue,
  this.withLogo = true,
  this.onError,
  required this.onPressed,
  required this.label,
}) : super(key: key);