Ivan
Ivan

Reputation: 99

About `native` keyword in Flutter

I found a keyword native in the Flutter SDK Window class.

File path is //flutter/bin/cache/pkg/sky_engine/lib/ui/window.dart.

void render(Scene scene) native 'Window_render';

I can not find any document about the native keyword.

How to use it?

What is its meaning?

Upvotes: 7

Views: 1198

Answers (1)

magicleon94
magicleon94

Reputation: 5182

That seems to be a keyword to call a native library, in order to extend the DartVM functionalities.

You can check here for more information!

Upvotes: 5

Related Questions