updateInitialStyle method
void
updateInitialStyle()
Implementation
void updateInitialStyle() {
final appBarPresent = EmergentAppBarTheme.of(context) != null;
final theme = EmergentTheme.currentTheme(context);
initialStyle = widget.style ??
(appBarPresent
? theme.appBarTheme.buttonStyle
: (theme.buttonStyle ?? const EmergentStyle()));
depth = widget.style?.depth ??
(appBarPresent ? theme.appBarTheme.buttonStyle.depth : theme.depth) ??
0.0;
setState(() {});
}