blob: 7aa79f4766de4e1f86956aeaf9ccc8b39664dc66 [file] [log] [blame]
// 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/widgets.dart';
export '../services/restoration.dart';
class BucketSpy extends StatefulWidget {
const BucketSpy({super.key, this.child});
final Widget? child;
State<BucketSpy> createState() => BucketSpyState();
class BucketSpyState extends State<BucketSpy> {
RestorationBucket? bucket;
void didChangeDependencies() {
bucket = RestorationScope.maybeOf(context);
Widget build(BuildContext context) {
return widget.child ?? Container();