Sometimes we have to use a custom mock to avoid retain cycles in OCMock. Used for testing low memory notification.
Definition at line 110 of file FlutterViewControllerTest.mm.
| - (BOOL) runWithEntrypoint: |
|
(nullable NSString *) |
entrypoint |
|
Runs a Dart program on an Isolate from the main Dart library (i.e. the library that contains main()), using "/" (the default route) as the initial route.
The first call to this method will create a new Isolate. Subsequent calls will return immediately and have no effect.
- Parameters
-
| entrypoint | The name of a top-level function from the same Dart library that contains the app's main() function. If this is FlutterDefaultDartEntrypoint (or nil) it will default to main(). If it is not the app's main() function, that function must be decorated with @pragma(vm:entry-point) to ensure the method is not tree-shaken by the Dart compiler. |
- Returns
- YES if the call succeeds in creating and running a Flutter Engine instance; NO otherwise.
Reimplemented from FlutterEngine.
Definition at line 117 of file FlutterViewControllerTest.mm.
155 :(nullable NSString*)entrypoint {
156 return YES;
157}