of static method

Implementation

static SkeletonThemeData of(BuildContext context) {
  final skeletonTheme =
      context.dependOnInheritedWidgetOfExactType<SkeletonTheme>();
  var theme = skeletonTheme?.data ?? _defaultTheme(context);

  if (theme.color == null) {
    theme = theme.copyWith(color: _color(context));
  }
  return theme;
}