File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## [ 0.4.2] - 2021/12/03.
2
+
3
+ * issue #16 .
4
+
1
5
## [ 0.4.1] - 2021/11/04.
2
6
3
7
* Fix a null cast error.
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import 'package:flutter/widgets.dart';
4
4
mixin LifecycleAware {
5
5
LifecycleEvent ? _currentLifecycleState;
6
6
7
+ LifecycleEvent ? get currentLifecycleState => _currentLifecycleState;
8
+
7
9
@mustCallSuper
8
10
void handleLifecycleEvents (List <LifecycleEvent > events) {
9
11
if (_currentLifecycleState == events.last) {
@@ -39,7 +41,7 @@ mixin LifecycleAware {
39
41
40
42
void onLifecycleEvent (LifecycleEvent event);
41
43
42
- /// Used for a indexed child, such as a item of [ListView] /[GridView] .
44
+ /// Used for an indexed child, such as an item of [ListView] /[GridView] .
43
45
int ? get itemIndex => null ;
44
46
}
45
47
Original file line number Diff line number Diff line change 1
1
name : lifecycle
2
2
description : Lifecycle support for Flutter widgets.
3
- version : 0.4.1
3
+ version : 0.4.2
4
4
homepage : https://github.com/chenenyu/lifecycle
5
5
publish_to : https://pub.dev
6
6
You can’t perform that action at this time.
0 commit comments