fromStyle static method
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,
);