getMetaThemeColor method

Future<Color?> getMetaThemeColor()

Returns an instance of Color representing the content value of the <meta name="theme-color" content=""> tag of the current WebView, if available, otherwise null.

NOTE: on Android, Web, iOS < 15.0 and MacOS < 12.0, it is implemented using JavaScript.

NOTE for Web: this method will have effect only if the iframe has the same origin.

Officially Supported Platforms/Implementations:

Implementation

Future<Color?> getMetaThemeColor() => platform.getMetaThemeColor();