toGridViewScrollDirection function

GridViewScrollDirection toGridViewScrollDirection(
  1. int? index
)

Implementation

GridViewScrollDirection toGridViewScrollDirection(int? index) {
  switch (index) {
    case 0:
      return GridViewScrollDirection.horizontal;
    case 1:
      return GridViewScrollDirection.vertical;
  }
  return GridViewScrollDirection.unknown;
}