SplashConfigParser class
Parses a JSON string or Map into a SplashConfig.
Useful for remote config, A/B testing, or dynamic splash updates.
Supported JSON shape:
{
"type": "logo_center",
"animation": "fade",
"duration": 2000,
"background_color": "#FFFFFF",
"app_name": "My App",
"tagline": "Powered by Flutter"
}
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
fromJson(
String json) → SplashConfig? - Parses a JSON String into a SplashConfig.
-
fromMap(
Map< String, dynamic> map) → SplashConfig - Parses a Map<String, dynamic> into a SplashConfig.
-
toMap(
SplashConfig config) → Map< String, dynamic> - Converts a SplashConfig back to a Map<String, dynamic>.