itemBuilder:

BuildContext

context

int

index

return

Text

'Item

$index

);

),

);

The new members of the PrimaryScrollController class,
automaticallyInheritForPlatforms and scrollDirection, are evaluated in
shouldInherit, allowing users clarity and control over the
PrimaryScrollController’s behavior.

By default, backwards compatibility is maintained for mobile platforms.
PrimaryScrollController.shouldInherit returns true for vertical
ScrollViews. On desktop, this returns false by default.

// Only on mobile platforms will this attach to the PrimaryScrollController by

// default.

Scaffold

body:

ListView

builder

itemBuilder:

BuildContext

context

int