generate static method

Widget generate(
  1. Widget child, {
  2. Color? color,
  3. double borderRadius = 8,
})

Implementation

static Widget generate(
    Widget child, {
      Color? color,
      double borderRadius = 8,
    }) {
  color ??= Colors.grey[300]!;
  return _SmartPlaceholder(
    child: child,
    color: color,
    borderRadius: borderRadius,
  );
}