optionalParam method

String? optionalParam(
  1. String name
)

Implementation

String? optionalParam(String name) {
  final param = this[name];
  return param is String ? param : null;
}