# PseudoFile.readOnlyStr constructor | |
*[<Null safety>](https://dart.dev/null-safety)* | |
PseudoFile.readOnlyStr([ReadFnStr](../../package-fuchsia_vfs_vfs/ReadFnStr.md) fn) | |
<p>See <code>#readOnly()</code>. Wraps the callback, allowing it to return a String instead of a Uint8List, | |
but otherwise behaves identical to <code>#readOnly()</code>.</p> | |
## Implementation | |
```dart | |
PseudoFile.readOnlyStr(ReadFnStr fn) | |
: _capacity = 0, | |
assert(fn != null) { | |
_readFn = _getReadFn(fn); | |
} | |
``` | |