cacheExtent property
- @Deprecated('Use scrollCacheExtent instead. ' 'This feature was deprecated after v3.41.0-0.0.pre.')
Deprecated. Use scrollCacheExtent instead.
Implementation
@Deprecated(
'Use scrollCacheExtent instead. '
'This feature was deprecated after v3.41.0-0.0.pre.',
)
double? get cacheExtent => _scrollCacheExtent.value;
- @Deprecated('Use scrollCacheExtent instead. ' 'This feature was deprecated after v3.41.0-0.0.pre.')
Implementation
@Deprecated(
'Use scrollCacheExtent instead. '
'This feature was deprecated after v3.41.0-0.0.pre.',
)
set cacheExtent(double? value) {
if (value == cacheExtent) {
return;
}
if (value == null) {
_scrollCacheExtent = const ScrollCacheExtent.pixels(
RenderAbstractViewport.defaultCacheExtent,
);
} else {
_scrollCacheExtent = switch (_scrollCacheExtent) {
_PixelScrollCacheExtent() => ScrollCacheExtent.pixels(value),
_ViewportScrollCacheExtent() => ScrollCacheExtent.viewport(value),
};
}
markNeedsLayout();
}