Clean up some old and obsolete TODOs of mine (#81631)

This commit is contained in:
Ian Hickson 2021-05-03 15:19:02 -07:00 committed by GitHub
parent 3ce6c1f4ba
commit 279f40d487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 4 deletions

View File

@ -221,7 +221,6 @@ class _AnimatedThemeState extends AnimatedWidgetBaseState<AnimatedTheme> {
@override
void forEachTween(TweenVisitor<dynamic> visitor) {
// TODO(ianh): Use constructor tear-offs when it becomes possible, https://github.com/dart-lang/sdk/issues/10659
_data = visitor(_data, widget.data, (dynamic value) => ThemeDataTween(begin: value as ThemeData))! as ThemeDataTween;
}

View File

@ -56,8 +56,7 @@ class RenderErrorBox extends RenderBox {
/// The message to attempt to display at paint time.
final String message;
// TODO(ianh): should be final
ui.Paragraph? _paragraph;
late final ui.Paragraph? _paragraph;
@override
double computeMaxIntrinsicWidth(double height) {

View File

@ -485,7 +485,6 @@ typedef AsyncWidgetBuilder<T> = Widget Function(BuildContext context, AsyncSnaps
/// [Stream].
/// * [StreamBuilderBase], which supports widget building based on a computation
/// that spans all interactions made with the stream.
// TODO(ianh): remove unreachable code above once https://github.com/dart-lang/linter/issues/1139 is fixed
class StreamBuilder<T> extends StreamBuilderBase<T, AsyncSnapshot<T>> {
/// Creates a new [StreamBuilder] that builds itself based on the latest
/// snapshot of interaction with the specified [stream] and whose build