File tree 3 files changed +5
-1
lines changed
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ class RenderProxyBox extends RenderBox with RenderObjectWithChildMixin<RenderBox
51
51
/// This class can be used as a mixin for situations where the proxying behavior
52
52
/// of [RenderProxyBox] is desired but inheriting from [RenderProxyBox] is
53
53
/// impractical (e.g. because you want to mix in other classes as well).
54
- // TODO(ianh): Remove this class once https://github.com/dart-lang/sdk/issues/15101 is fixed
54
+ /// TODO(ianh): Remove this class once https://github.com/dart-lang/sdk/issues/15101 is fixed
55
+ @optionalTypeArgs
55
56
abstract class RenderProxyBoxMixin <T extends RenderBox > extends RenderBox with RenderObjectWithChildMixin <T > {
56
57
// This class is intended to be used as a mixin, and should not be
57
58
// extended directly.
Original file line number Diff line number Diff line change @@ -299,6 +299,7 @@ class KeepAliveHandle extends ChangeNotifier {
299
299
///
300
300
/// * [AutomaticKeepAlive] , which listens to messages from this mixin.
301
301
/// * [KeepAliveNotification] , the notifications sent by this mixin.
302
+ @optionalTypeArgs
302
303
abstract class AutomaticKeepAliveClientMixin <T extends StatefulWidget > extends State <T > {
303
304
// This class is intended to be used as a mixin, and should not be
304
305
// extended directly.
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ class TickerMode extends InheritedWidget {
73
73
/// This mixin only supports vending a single ticker. If you might have multiple
74
74
/// [AnimationController] objects over the lifetime of the [State] , use a full
75
75
/// [TickerProviderStateMixin] instead.
76
+ @optionalTypeArgs
76
77
abstract class SingleTickerProviderStateMixin <T extends StatefulWidget > extends State <T > implements TickerProvider { // ignore: TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, https://github.com/dart-lang/sdk/issues/25232
77
78
// This class is intended to be used as a mixin, and should not be
78
79
// extended directly.
@@ -155,6 +156,7 @@ abstract class SingleTickerProviderStateMixin<T extends StatefulWidget> extends
155
156
/// If you only have a single [Ticker] (for example only a single
156
157
/// [AnimationController] ) for the lifetime of your [State] , then using a
157
158
/// [SingleTickerProviderStateMixin] is more efficient. This is the common case.
159
+ @optionalTypeArgs
158
160
abstract class TickerProviderStateMixin <T extends StatefulWidget > extends State <T > implements TickerProvider { // ignore: TYPE_ARGUMENT_NOT_MATCHING_BOUNDS, https://github.com/dart-lang/sdk/issues/25232
159
161
// This class is intended to be used as a mixin, and should not be
160
162
// extended directly.
You can’t perform that action at this time.
0 commit comments