DefaultsPlatformManager class

Manages default configurations for the desktop platform.

Example usage:

void main() async {
  DefaultsPlatformManager.initialize(
    DesktopTargetPlatform.windows,
    isDebugging: true,
  );
  runApp(const App());
}

Constructors

DefaultsPlatformManager.initialize({required DesktopTargetPlatform targetPlatform, DesktopTargetPlatform? targetLinux, DesktopTargetPlatform? targetWeb, bool isDebugging = kDebugMode, @visibleForTesting bool isTesting = false})
Initializes the DefaultsPlatformManager with the specified parameters.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isDebugging → bool
the debugging status for the application.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
targetLinux → DesktopTargetPlatform
the target Linux platform or defaults to targetPlatform if not specified.
no setter
targetPlatform → DesktopTargetPlatform
the desktop target platform for the application.
no setter
targetWeb → DesktopTargetPlatform
the target web platform or defaults to targetPlatform if not specified.
no setter

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 Properties

instance → DefaultsPlatformManager
Gets the singleton instance of DefaultsPlatformManager.
no setter
isInitialized → bool
no setter

Static Methods

ensureInitialized() → void
Ensures that the manager has been initialized.