$getProperty method

  1. @override
$Value? $getProperty(
  1. Runtime runtime,
  2. String identifier
)

Get a property by identifier on this instance

Implementation

@override
$Value? $getProperty(Runtime runtime, String identifier) {
  switch (identifier) {
    case 'name':
      return $String($value.name);
    case 'codec':
      return $MethodCodec.wrap($value.codec);
    case 'binaryMessenger':
      return $BinaryMessenger.wrap($value.binaryMessenger);
    case 'invokeMethod':
      return __invokeMethod;
    case 'invokeListMethod':
      return __invokeListMethod;
    case 'invokeMapMethod':
      return __invokeMapMethod;
    case 'setMethodCallHandler':
      return __setMethodCallHandler;
    default:
      return _superclass.$getProperty(runtime, identifier);
  }
}