我是扑扑的学生,想知道简单变量\ Class和变量\ class之间的区别,此键以_开头吗?
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
void main() {
runApp(AnimatedList());
}
class AnimatedList extends StatefulWidget {
@override
_AnimatedListState createState() => _AnimatedListState();
}
class _AnimatedListState extends State<AnimatedList> {
final GlobalKey<AnimatedListState> _listKey =
GlobalKey<AnimatedListState>();
ListModel<int> _list;
int _selectedItem;
int _nextItem;