memoizeScrollToNon function Null safety

WidgetBuilder memoizeScrollToNon(
  1. WidgetBuilder builder
)

Implementation

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