param method

Extension to wrap 'key' with BridgeParameter

//Without Extension method
final keyUnwrapped = BridgeParameter('icon', BridgeTypeAnnotation($IconData.$type), false);
//With Extension method, you can write
final keyWrapped = 'icon'.param($IconData.$type);

See paramOptional for optional named param See paramNullable for nullable param

Implementation

BridgeParameter param(BridgeTypeAnnotation type) {
  return BridgeParameter(this, type, false);
}