FlutterEmbedder class
A Dart wrapper for the Flutter engine API.
Constructors
-
FlutterEmbedder(Rectangle<
int> size, DartProject project, String flutterLibrary) - Creates an instance of the FlutterEmbedder for embedding Flutter in a Windows application.
Properties
-
controller
↔ Pointer<
FlutterDesktopViewControllerState> -
Handle for the Flutter view controller.
latefinal
-
engine
↔ Pointer<
FlutterDesktopEngine> -
Handle for interacting with the C API's engine reference.
latefinal
- flutter ↔ FlutterEngineLibrary
-
Object that holds the native API functions.
latefinal
- hasBeenRun ↔ bool
-
Whether the engine has been run.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hwnd → int
-
Gets the HWND (window handle) associated with the Flutter view.
no setter
-
messenger
↔ Pointer<
FlutterDesktopMessenger> -
Messenger for communicating with the engine.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
view
↔ Pointer<
FlutterDesktopView> -
Handle for the Flutter view.
latefinal
Methods
-
handleTopLevelWindowProc(
int hwnd, int message, int wParam, int lParam) → int - Handles top-level window messages for Flutter view.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reloadSystemFonts(
) → void - Notifies the Flutter engine that the system font list has changed.
-
run(
String entryPoint) → bool - Starts running the Flutter engine, optionally specifying an entry point.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited