onCreateGridView method

UIGridView? onCreateGridView()

Implementation

UIGridView? onCreateGridView() {
  final model = data as UIGridViewCellModel;

  gridView = UIGridView(
    gridDelegate: model.gridDelegate,
    physics: model.physics,
    scrollDirection: model.scrollDirection,
    edgeInsets: model.edgeInsets,
    crossAxisCount: model.crossAxisCount,
    mainAxisSpacing: model.mainAxisSpacing,
    crossAxisSpacing: model.crossAxisSpacing,
    aspectRatio: model.aspectRatio,
    rows: model.rows,
    didScrollClosure: (offsety) {
      onDidScroll(offsety);
    },
  );
  return gridView!;
}