Commit d98d09d4 authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

remove unnecessary @required (#10501)

parent 078b380d
......@@ -114,7 +114,7 @@ class _CupertinoEdgeShadowDecoration extends Decoration {
/// A [BoxPainter] used to draw the page transition shadow using gradients.
class _CupertinoEdgeShadowPainter extends BoxPainter {
_CupertinoEdgeShadowPainter(
@required this._decoration,
this._decoration,
VoidCallback onChange
) : assert(_decoration != null),
super(onChange);
......
......@@ -1659,7 +1659,7 @@ class BoxDecoration extends Decoration {
/// An object that paints a [BoxDecoration] into a canvas.
class _BoxDecorationPainter extends BoxPainter {
_BoxDecorationPainter(@required this._decoration, VoidCallback onChange)
_BoxDecorationPainter(this._decoration, VoidCallback onChange)
: assert(_decoration != null),
super(onChange);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment