AuthyoWidgetConfig class
Remote configuration for the built-in dialog, as returned by
GET /api/v1/authyoclient/mobileconfig.
The parser is lenient: it also understands the shape returned by the web
CDN endpoint (results + appCustomizationModel) and the bare
AppCustomizationModel returned by /user/getappcustomization, so the
SDK keeps working whichever endpoint the backend exposes.
Constructors
-
AuthyoWidgetConfig({AuthyoDesignStyle? designStyle, AuthyoTheme theme = const AuthyoTheme(), List<
String> authMethods = const [], List<AuthyoSocialLogin> socialLogins = const [], int? otpLength, Map<String, dynamic> ? raw}) -
const
-
AuthyoWidgetConfig.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
authMethods
→ List<
String> -
Enabled OTP channels, e.g.
["Sms", "Whatsapp", "Email"].final - designStyle → AuthyoDesignStyle?
-
Design style chosen on the dashboard, or null when the backend does not
send one (older server) — the SDK then uses its local default.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSocialLogins → bool
-
no setter
- otpLength → int?
-
OTP length configured for the application.
final
-
raw
→ Map<
String, dynamic> ? -
The raw JSON this config was parsed from (kept for caching).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Enabled social login buttons.
final
- theme → AuthyoTheme
-
Colours / texts / layout from the dashboard customization.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- empty → const AuthyoWidgetConfig