Pullable constructor

const Pullable({
  1. Key? key,
  2. required Widget child,
  3. PullableConfig config = const PullableConfig(),
  4. RefreshController? controller,
  5. @Deprecated('Use config.onRefresh instead') Future<void> onRefresh()?,
  6. @Deprecated('Use config.headerType instead') String? headerStyle,
  7. @Deprecated('Use config.physics instead') ScrollPhysics? physics,
})

Default constructor with full configuration options

Implementation

const Pullable({
  super.key,
  required this.child,
  this.config = const PullableConfig(),
  this.controller,
  // Backwards compatibility parameters
  @Deprecated('Use config.onRefresh instead') this.onRefresh,
  @Deprecated('Use config.headerType instead') this.headerStyle,
  @Deprecated('Use config.physics instead') this.physics,
});