I want to change the value of RowIndex from _getAttendence
class Attendence extends StatefulWidget {
const Attendence({Key? key}) : super(key: key);
@override
State<Attendence> createState() => _AttendenceState();
}
class _AttendenceState extends State<Attendence> {
String RowIndex = "0";
Widget build(BuildContext context){...}
_getAttendence(String KEY, String RowIndex) async {
RowIndex = "50";
}
}
