setPageTitle function

void setPageTitle({
  1. required BuildContext context,
  2. required String title,
  3. int? primaryColor,
})

For web use, set the tab's title

Implementation

void setPageTitle({
  required BuildContext context,
  required String title,
  int? primaryColor,
}) {
  SystemChrome.setApplicationSwitcherDescription(
    ApplicationSwitcherDescription(
      label: title,
      primaryColor: primaryColor,
    ),
  );
}