buildToolBar static method

ToolBar buildToolBar(
  1. BuildContext context, {
  2. List<AppTitleTool>? anchors,
})

Implementation

static ui.ToolBar buildToolBar(
  BuildContext context, {
  List<AppTitleTool>? anchors,
}) {
  anchors ??= app.FeatureRegistry.instance().getAnchors<AppTitleTool>(
    AppTitleToolBar.featureHookName,
    context: context,
  );
  anchors.sort((a, b) => a.order.compareTo(b.order));

  return ui.ToolBar(
    tools: anchors,
  );
}