SonrButton constructor Null safety
- {Key? key,
- ButtonVariant variant = ButtonVariant.blue,
- bool withLogo = true,
- ErrorCallback? onError,
- required VoidCallback onPressed,
- 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);