// Copyright 2019 The Flutter team. 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({ Key key, @required this.layouts, @required Widget child, }) : super(key: key, child: child); static Map>> of(BuildContext context) { return context.dependOnInheritedWidgetOfExactType().layouts; } final Map>> layouts; @override bool updateShouldNotify(LayoutCache old) => true; }