blob: 826aa7d17cc9aa915e401b1efd5dc08547eb4635 [file] [log] [blame]
// Copyright 2015 The Chromium 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 'framework.dart';
typedef AsyncWidgetBuilder<T> = Widget Function(
BuildContext context, AsyncSnapshot<T> snapshot);
class AsyncSnapshot<T> {}
class StreamBuilder<T> {
final T? initialData;
final AsyncWidgetBuilder<T> builder;
const StreamBuilder(
{Key? key, this.initialData, Stream<T>? stream, @required this.builder});
}