// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/material.dart'; class LayoutCache extends InheritedWidget { const LayoutCache({super.key, required this.layouts, required super.child}); static Map>> of(BuildContext context) { return context.dependOnInheritedWidgetOfExactType()!.layouts; } final Map>> layouts; @override bool updateShouldNotify(LayoutCache oldWidget) => true; }