blob: f5b17e04e4d6ae9c55ff1291ff3024de5f5641c0 [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});
}