themeMode method
Implementation
BoxDecoration themeMode(BuildContext context,
{required AwsDecorationProcessButton style}) {
var darkStyle =
style.copyWith(color: style.darkColor, boxShadow: style.darkBoxShadow);
var lightStyle =
style.copyWith(color: style.color, boxShadow: style.boxShadow);
if (widget.cupertinoThemeMode) {
if (CupertinoTheme.of(context).brightness == Brightness.dark) {
return darkStyle;
}
return lightStyle;
} else {
if (Theme.of(context).brightness == Brightness.dark) {
return darkStyle;
}
return lightStyle;
}
}