CloneConfigModel class
Represents the complete configuration for a Flutter project clone.
This model contains all the necessary information to configure a white-labeled version of a Flutter application, including branding, colors, package details, and server endpoints.
Example:
final config = CloneConfigModel.fromJson({
'appName': 'MyApp',
'clientId': 'client-123',
'packageName': 'com.example.myapp',
'primaryColor': '#FF5733',
'baseUrl': 'https://api.example.com',
'version': '1.0.0+1'
});
Constructors
- CloneConfigModel.fromJson(dynamic json)
- Creates a CloneConfigModel instance from a JSON object.
Properties
- appName ↔ String?
-
The display name of the application.
getter/setter pair
- baseUrl ↔ String?
-
The base URL for API endpoints.
getter/setter pair
- clientId ↔ String?
-
Unique identifier for this client configuration.
getter/setter pair
-
colors
↔ List<
ColorModel> ? -
List of additional color configurations for the application.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
Validates if the configuration has the minimum required fields.
no setter
- packageName ↔ String?
-
The Android/iOS package name (e.g., 'com.example.app').
getter/setter pair
- primaryColor ↔ String?
-
The primary color for the app theme in hex format.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version ↔ String
-
The version string in format 'major.minor.patch+build' (e.g., '1.0.0+1').
getter/setter pair
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