isMobileAppStatusBarTranslucent function

bool isMobileAppStatusBarTranslucent()

Returns true if meta tag of name apple-mobile-web-app-status-bar-style is translucent.

Implementation

bool isMobileAppStatusBarTranslucent() {
  var metaTagsContents =
      getMetaTagsContentWithName('apple-mobile-web-app-status-bar-style');
  if (metaTagsContents.isEmpty) return false;
  var metaStatusContent = metaTagsContents[0]!;
  return metaStatusContent.contains('translucent');
}