SonrRegisterButton constructor Null safety

const SonrRegisterButton(
  1. {Key? key,
  2. ButtonVariant variant = ButtonVariant.blue,
  3. ResponseCallback<WhoIs>? onSuccess,
  4. ErrorCallback? onError}
)

Implementation

const SonrRegisterButton({Key? key, this.variant = ButtonVariant.blue, this.onSuccess, this.onError}) : super(key: key);