LoginCallback constructor

LoginCallback({
  1. String? account,
  2. @Deprecated('Use account instead. Will be removed in v2.0.0.') String? username,
  3. String? password,
  4. Map<String, dynamic>? args,
  5. CkOtpTrigger? trigger,
})

Implementation

LoginCallback({
  String? account,
  @Deprecated('Use account instead. Will be removed in v2.0.0.')
  String? username,
  this.password,
  this.args,
  this.trigger,
}) : assert(
       account != null || username != null,
       'Provide either account or username.',
     ),
     account = account ?? username!;