toWidget method
Return the associated Widget
Implementation
@override
Widget toWidget(BuildContext context) => AppBar(
title: title == null
? null
: Text(title!, style: const TextStyle(fontSize: 12)),
centerTitle: true,
elevation: elevation,
foregroundColor: toColor(foregroundColor),
backgroundColor: toColor(backgroundColor),
leading: leading?.toWidget(context),
bottom: _bottomWidget(context),
automaticallyImplyLeading: automaticallyImplyLeading ?? true,
actions: actions?.map((e) => e.toWidget(context)).toList(),
);