AnimatedGrid<T> constructor

const AnimatedGrid<T>({
  1. Key? key,
  2. required double itemHeight,
  3. required List<T> items,
  4. required Key keyBuilder(
    1. T item
    ),
  5. required AnimatedGridBuilder<T> builder,
  6. double padding = 8,
  7. int columns = 2,
  8. Duration duration = const Duration(milliseconds: 500),
  9. Curve curve = Curves.elasticOut,
})

An animated grid the animates when the items change sort.

Implementation

const AnimatedGrid({
  Key? key,
  required this.itemHeight,
  required this.items,
  required this.keyBuilder,
  required this.builder,
  this.padding = 8,
  this.columns = 2,
  this.duration = const Duration(milliseconds: 500),
  this.curve = Curves.elasticOut,
}) : super(key: key);