I have 2 screens in my Flutter app: list of records and screen for creating and editing records.
If I pass object to second screen that means I am going to edit this
To use recordObject in _RecordPageState, you have to just write widget.objectname like below
class _RecordPageState extends State { @override Widget build(BuildContext context) { ..... widget.recordObject ..... } }