pub struct VirtualizedList<'a, T> { /* private fields */ }Expand description
A virtualized list widget that renders only visible items.
This widget efficiently renders large lists by only drawing items that are currently visible in the viewport, with optional overscan for smooth scrolling.
Implementations§
Source§impl<'a, T> VirtualizedList<'a, T>
impl<'a, T> VirtualizedList<'a, T>
Sourcepub fn highlight_style(self, style: Style) -> Self
pub fn highlight_style(self, style: Style) -> Self
Set highlight style for selected item.
Sourcepub fn show_scrollbar(self, show: bool) -> Self
pub fn show_scrollbar(self, show: bool) -> Self
Enable/disable scrollbar.
Sourcepub fn fixed_height(self, height: u16) -> Self
pub fn fixed_height(self, height: u16) -> Self
Set fixed item height.
Trait Implementations§
Source§impl<'a, T: Debug> Debug for VirtualizedList<'a, T>
impl<'a, T: Debug> Debug for VirtualizedList<'a, T>
Source§impl<T: RenderItem> StatefulWidget for VirtualizedList<'_, T>
impl<T: RenderItem> StatefulWidget for VirtualizedList<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for VirtualizedList<'a, T>
impl<'a, T> RefUnwindSafe for VirtualizedList<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for VirtualizedList<'a, T>where
T: Sync,
impl<'a, T> Sync for VirtualizedList<'a, T>where
T: Sync,
impl<'a, T> Unpin for VirtualizedList<'a, T>
impl<'a, T> UnwindSafe for VirtualizedList<'a, T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more