blob: 24c3976ac41bd3f4b2f40471caec7d69719f8f18 [file] [log] [blame] [edit]
import 'dart:js_interop';
@JS('window.flutterCanvasKit')
external set _windowFlutterCanvasKit(JSAny? value);
Future<void> initializeEngine() async {
// Pretend that CanvasKit exists. Flute doesn't render anything, but we're
// interested in exercising the CanvasKit codepaths in the framework.
_windowFlutterCanvasKit = Object().toJSBox;
}