Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

About `native` keyword in Flutter

Tags:

flutter

dart

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?

like image 889
Ivan Avatar asked Dec 10 '19 06:12

Ivan


1 Answers

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!

like image 66
magicleon94 Avatar answered Nov 12 '22 05:11

magicleon94