setupAppBar method

Future<AppBarModel> setupAppBar(
  1. String? documentID,
  2. MenuDefModel? menu,
  3. String? title, {
  4. BackgroundModel? backgroundOverride,
  5. RgbModel? iconColorOverride,
  6. RgbModel? selectedIconColorOverride,
  7. RgbModel? menuBackgroundColorOverride,
})

Implementation

Future<AppBarModel> setupAppBar(
    String? documentID, MenuDefModel? menu, String? title,
    {BackgroundModel? backgroundOverride,
    RgbModel? iconColorOverride,
    RgbModel? selectedIconColorOverride,
    RgbModel? menuBackgroundColorOverride}) async {
  return await mainrepo.AbstractRepositorySingleton.singleton
      .appBarRepository(theApp.documentID)!
      .add(_appBar(documentID, menu, title,
          backgroundOverride: backgroundOverride,
          iconColorOverride: iconColorOverride,
          selectedIconColorOverride: selectedIconColorOverride,
          menuBackgroundColorOverride: menuBackgroundColorOverride));
}