setDarkStatusBar method

void setDarkStatusBar()

Changes the text and icon color on the statusbar to a dark color

Implementation

void setDarkStatusBar() {
  SystemChrome.setSystemUIOverlayStyle(theme.darkStatusBar);
}