of static method

The registered extension, or colors derived from the current scheme.

Implementation

static SafaehStatusColors of(BuildContext context) {
  final theme = Theme.of(context);
  return theme.extension<SafaehStatusColors>() ??
      SafaehStatusColors.fromColorScheme(theme.colorScheme);
}