FeedController constructor

FeedController({
  1. double? initialOffset,
  2. bool? keepScrollOffset,
  3. String? debugLabel,
  4. FeedGridViewDelegate? gridDelegate,
})

Default constructor Creates the nested controllers

Implementation

factory FeedController({
  double? initialOffset,
  bool? keepScrollOffset,
  String? debugLabel,
  FeedGridViewDelegate? gridDelegate
}){

  return FeedController._(
    ScrollController(
      debugLabel: debugLabel ?? 'SimpleFeedScrollController-' + UniqueKey().toString(),
      initialScrollOffset: initialOffset ?? 0.0,
      keepScrollOffset: keepScrollOffset ?? true
    ),
    gridDelegate
  );
}