getRootLibrary method
Returns the app's root library.
Implementation
Future<Library> getRootLibrary() async {
_ensureConnected();
final isolate = await getIsolate();
return await _vmService!.getObject(_isolateId!, isolate.rootLib!.id!)
as Library;
}