await

SharedPreferences

getInstance

();

print

sharedPreferences

getBool

'isDebug'

));

void

main

()

RootIsolateToken

rootIsolateToken

RootIsolateToken

instance

Isolate

spawn

_isolateMain

rootIsolateToken

);

Executing channel handlers on background threads

In order for a channel’s platform side handler to
execute on a background thread, you must use the
Task Queue API. Currently this feature is only
supported on iOS and Android.

In Java:

@Override

public

void

onAttachedToEngine