StatusChange.custom constructor

StatusChange.custom({
  1. Key? key,
  2. Axis? scrollDirection,
  3. required SliverChildDelegate childrenDelegate,
  4. StatusChangeThemeData? theme,
})

Implementation

StatusChange.custom({
  Key? key,
  Axis? scrollDirection,
  required this.childrenDelegate,
  StatusChangeThemeData? theme,
})  : assert(childrenDelegate != null),
      assert(scrollDirection == null || theme == null,
          'Cannot provide both a scrollDirection and a theme.'),
      this.theme = theme,
      super(
        key: key,
        scrollDirection: scrollDirection ?? theme?.direction ?? Axis.vertical,
      );