$getProperty method

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

Get a property by identifier on this instance

Implementation

@override
$Value? $getProperty(Runtime runtime, String identifier) {
  switch (identifier) {
    case 'create':
      return _create;
    case 'createSync':
      return _createSync;
    case 'rename':
      return _rename;
    case 'renameSync':
      return _renameSync;
    case 'lastAccessed':
      return _lastAccessed;
    case 'lastAccessedSync':
      return _lastAccessedSync;
    case 'setLastAccessed':
      return _setLastAccessed;
    case 'setLastAccessedSync':
      return _setLastAccessedSync;
    case 'lastModified':
      return _lastModified;
    case 'lastModifiedSync':
      return _lastModifiedSync;
    case 'setLastModified':
      return _setLastModified;
    case 'setLastModifiedSync':
      return _setLastModifiedSync;
    case 'length':
      return _length;
    case 'lengthSync':
      return _lengthSync;
    /*case 'open':
      return _open;
    case 'openSync':
      return _openSync;*/
    case 'readAsString':
      return _readAsString;
    case 'readAsStringSync':
      return _readAsStringSync;
    case 'readAsBytes':
      return _readAsBytes;
    case 'readAsBytesSync':
      return _readAsBytesSync;
    case 'readAsLines':
      return _readAsLines;
    case 'readAsLinesSync':
      return _readAsLinesSync;
    case 'writeAsString':
      return _writeAsString;
    case 'writeAsStringSync':
      return _writeAsStringSync;
    case 'writeAsBytes':
      return _writeAsBytes;
    case 'writeAsBytesSync':
      return _writeAsBytesSync;
  }
  return _superclass.$getProperty(runtime, identifier);
}