DistributionInitResult class
Represents the initialization result of the distribution environment.
The DistributionInitResult class contains flags indicating whether
required tools and configurations (e.g., Git, Fastlane, Firebase CLI) are
available and valid.
Example usage:
final initResult = DistributionInitResult.instance();
if (initResult?.git ?? false) {
print("Git is installed.");
}
Constructors
- DistributionInitResult({required bool git, required bool fastlane, required bool fastlaneJson, required bool xcrun, required bool firebase})
-
Creates a new
DistributionInitResultinstance with the specified flags. -
DistributionInitResult.fromJson(Map<
String, dynamic> json) -
Creates a
DistributionInitResultinstance from a JSON map.factory
Properties
- fastlane → bool
-
Indicates if Fastlane is installed.
final
- fastlaneJson → bool
-
Indicates if the Fastlane JSON key is valid.
final
- firebase → bool
-
Indicates if Firebase CLI is installed.
final
- git → bool
-
Indicates if Git is installed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- xcrun → bool
-
Indicates if XCRun is installed (MacOS only).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns a string representation of the
DistributionInitResultinstance.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
empty(
) → DistributionInitResult -
Creates an empty
DistributionInitResultinstance with all flags set tofalse. -
instance(
) → DistributionInitResult? -
Loads the
DistributionInitResultinstance from thedistfile.