Sliver.visibility constructor Null safety

const Sliver.visibility(
  1. {Key? key,
  2. required Sliver sliver,
  3. @Default(SliverToBoxAdapter()) Sliver replacementSliver,
  4. @Default(true) bool visible,
  5. @Default(false) bool maintainState,
  6. @Default(false) bool maintainAnimation,
  7. @Default(false) bool maintainSize,
  8. @Default(false) bool maintainSemantics,
  9. @Default(false) bool maintainInteractivity}
)

Implementation

const factory Sliver.visibility({
  Key? key,
  required Sliver sliver,
  @Default(SliverToBoxAdapter()) Sliver replacementSliver,
  @Default(true) bool visible,
  @Default(false) bool maintainState,
  @Default(false) bool maintainAnimation,
  @Default(false) bool maintainSize,
  @Default(false) bool maintainSemantics,
  @Default(false) bool maintainInteractivity,
}) = SliverVisibility;