trying to pass variable to a state which is initialized in a list of widgets code example
Example: flutter pass parameter to statefulwidget
class _RecordPageState extends State<RecordPage> {
Widget build(BuildContext context) {
.....
widget.recordObject
.....
}
}