diff --git a/packages/flutter/lib/src/scheduler/binding.dart b/packages/flutter/lib/src/scheduler/binding.dart index e9d4ba5647..ff71f1cf79 100644 --- a/packages/flutter/lib/src/scheduler/binding.dart +++ b/packages/flutter/lib/src/scheduler/binding.dart @@ -517,7 +517,6 @@ abstract class SchedulerBinding extends BindingBase { /// /// This is only valid while [handleBeginFrame] is running, i.e. while a frame /// is being produced. - // TODO(ianh): Replace this when fixing https://github.com/flutter/flutter/issues/5469 Duration get currentFrameTimeStamp { assert(_currentFrameTimeStamp != null); return _currentFrameTimeStamp; diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index e152dde85c..794b3e2cbf 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -2790,6 +2790,7 @@ class RepaintBoundary extends SingleChildRenderObjectWidget { /// The key for the [RepaintBoundary] is derived either from the child's key /// (if the child has a non-null key) or from the given `childIndex`. factory RepaintBoundary.wrap(Widget child, int childIndex) { + assert(child != null); Key key = child.key != null ? new ValueKey(child.key) : new ValueKey(childIndex); return new RepaintBoundary(key: key, child: child); }