GridAddon constructor

GridAddon([
  1. int dimension = 50
])

Implementation

GridAddon([int dimension = 50])
    : assert(dimension > 0),
      super(
        name: 'Grid',
        builder: (context, child) {
          return Stack(
            children: [
              GridPaper(
                color: Colors.grey.withOpacity(0.5),
                interval: dimension.toDouble(),
                subdivisions: 2,
                child: Container(),
              ),
              child,
            ],
          );
        },
      );