ctorParam property

String get ctorParam

Constructor parameter: required this.title or this.age for nullables.

Implementation

String get ctorParam => nullable ? 'this.$name' : 'required this.$name';