checkParams method
Implementation
void checkParams(BuildContext context) {
titleColor ??= Theme.of(context).textTheme.titleLarge!.color;
if (title == null && titleText != null) {
title = Text(
titleText!,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 18, color: titleColor, fontWeight: FontWeight.bold),
);
}
messageColor ??= Theme.of(context).textTheme.titleSmall!.color;
if (content == null && message != null) {
content = Text(
message!,
textAlign: TextAlign.center,
style: TextStyle(color: messageColor),
);
}
backgroundColor ??= DialogTheme.of(context).backgroundColor;
elevation ??= DialogTheme.of(context).elevation;
Color accentColor = Theme.of(context).colorScheme.secondary;
btnOkColor ??= accentColor;
btnCancelColor ??= accentColor;
btnNeutralColor ??= accentColor;
}