CustomSigninWidget constructor

CustomSigninWidget({
  1. required Widget child,
  2. required dynamic onSessionSuccess(
    1. ThirdPartySessionModel?
    ),
  3. required dynamic onSessionError(
    1. int
    ),
  4. required dynamic onReset(),
  5. Key? key,
})

Implementation

CustomSigninWidget({
  required this.child,
  required this.onSessionSuccess,
  required this.onSessionError,
  required this.onReset,
  super.key}) {

  if (child is IForm) {
    (child as IForm).setListener(onChildValidated);
  } else {
    ModLogger.e(tag: TAG, msg: "Unable to set custom signin");
  }
}