futter Passing data to StatefulWidget and accessing it in it's state in Flutter code example
Example: flutter pass parameter to statefulwidget
class _RecordPageState extends State<RecordPage> {
@override
Widget build(BuildContext context) {
.....
widget.recordObject
.....
}
}