CommandlineOrGuiWindows class

strut version, no support for this platform

Constructors

CommandlineOrGuiWindows()

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

commandlineExit({int exitCode = 0}) → dynamic
A function that can be used to exit the app when it is in commandline mode should only be called from afterLoaded function not for use with gui will not close app if _closeOnCompleteCommandlineOptionOnly is false, which is usually for debugging purposes only
runAppCommandlineOrGUI({Widget? gui, Future<void> commandlineRun()?, required int argsCount, bool closeOnCompleteCommandlineOptionOnly = true, int commandlineExitSuccessCode = 0}) Future<void>
used to run the app in commandline or gui mode argsCount should be args.length from the main function the gui will load if 0 args are passed commandline mode will run if 1+ args are passed if the function is running wrong run: flutter pub run commandline_or_gui_windows:create. Throws an error if not windows