effectiveDecoration method
Implementation
Decoration effectiveDecoration(BuildContext context) {
if (decoration case final decoration?) return decoration;
final theme = Theme.of(context);
return isExpressive
? ShapeDecoration(
color: theme.colorScheme.surfaceContainer,
shape: RoundedRectangleBorder(
borderRadius:
containerRadius ??
const BorderRadius.all(Radius.circular(28)),
),
)
: BoxDecoration(
border: Border.all(color: theme.dividerColor),
color: theme.colorScheme.surface,
);
}