State
import 'package:flutter/material.dart';
class App extends StatefulWidget {
@override
_AppState createState() => _AppState();
}
class _AppState extends State<App> {
Widget build(BuildContext context) {}
}
onTap: (newIndex) {
setState(() {
_index = newIndex;
});
},