grid method

PreviewLayerBuilder grid (
  1. {Color color: Colors.white30}
)

Generate a grid layer with color.

Implementation

static PreviewLayerBuilder grid({
  Color color = Colors.white30,
}) =>
    (final BuildContext context, PreviewLayerContext layerContext) =>
        CustomPaint(
          painter: _GridPainter(color: color),
          child: Container(),
        );