$getProperty method
Get a property by identifier
on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case 'path':
return $String($value.path);
case 'absolute':
return $FileSystemEntity.wrap($value.absolute);
case 'parent':
runtime.assertPermission('filesystem:read', $value.path);
return $Directory.wrap($value.parent);
case 'uri':
return $Uri.wrap($value.uri);
case 'exists':
return _exists;
case 'existsSync':
return _existsSync;
case 'delete':
return _delete;
case 'deleteSync':
return _deleteSync;
case 'rename':
return _rename;
case 'renameSync':
return _renameSync;
}
return _superclass.$getProperty(runtime, identifier);
}