monarch_io_utils library
Classes
- FlutterChannels
- FlutterSdkId
-
LongRunningCli<
T> - NonInteractiveProcess
- Runs a process non-interactively to completion. It exposes the process output through convinience getters.
Constants
- defaultPumps → const int
Properties
- invalidUserDirectoryMessage → String
-
no setter
- userDirectoryEnvironmentVariable → String
-
no setter
- userDirectoryPath → String?
-
no setter
Functions
-
functionForPlatform<
T> ({required T macos(), required T windows()}) → T -
futureForPlatform<
T> ({required Future< T> macos(), required Future<T> windows()}) → Future<T> -
getPrettyCommand(
String executable, List< String> arguments) → String -
hardWrap(
String string, {int lineLength = 80}) → String -
"Hard wraps" the
string
on or after thelineLength
. It only replaces white spaces with new lines. -
isUserDirectoryValid(
) → bool -
pumpEventQueue(
{int times = defaultPumps}) → Future -
Returns a Future that completes after the event loop has run the given
number of
times
(20 by default). -
valueForPlatform<
T> ({required T macos, required T windows, T? linux}) → T -
whileTrue(
bool isTrue(), {int times = defaultPumps}) → Future -
Returns a Future that completes when the function
isTrue
returns false. If the functionisTrue
returns true, this function will pump the event queue a number oftimes
and then callisTrue
again.