memoizeScrollBuild function

WidgetBuilder memoizeScrollBuild(
  1. WidgetBuilder builder
)

Implementation

WidgetBuilder memoizeScrollBuild(WidgetBuilder builder) {
  Widget? _memoized;
  return (context) => _memoized ??= builder(context);
}