fromStyle static method

PreferredSizeWidget fromStyle(
  1. VoAppBarStyle style, {
  2. String? title,
  3. Widget? titleWidget,
  4. Widget? leading,
  5. List<Widget>? actions,
})

Implementation

static PreferredSizeWidget fromStyle(
  VoAppBarStyle style, {
  String? title,
  Widget? titleWidget,
  Widget? leading,
  List<Widget>? actions,
}) => AppBar(
  title:
      titleWidget ??
      (title == null ? null : Text(title, style: style.titleTextStyle)),
  leading: leading,
  actions: actions,
  backgroundColor: style.backgroundColor,
  foregroundColor: style.foregroundColor,
  elevation: style.elevation,
  centerTitle: style.centerTitle,
  automaticallyImplyLeading: style.automaticallyImplyLeading,
);