createGlobalKey static method
create a custom GlobalKey , use this way to avoid type exception in dart2 .
Implementation
static GlobalKey<RectGetterState> createGlobalKey() {
return GlobalKey<RectGetterState>();
}
create a custom GlobalKey , use this way to avoid type exception in dart2 .
static GlobalKey<RectGetterState> createGlobalKey() {
return GlobalKey<RectGetterState>();
}