permissions property

FilePermission? get permissions

The permissions of the file, e.g. whether the file is readonly.

Note: This value might be a bitmask, e.g. FilePermission.Readonly | FilePermission.Other.

Implementation

_i3.FilePermission? get permissions => switch (_i5.getProperty(
      this,
      'permissions',
    )) {
      _i2.String name => _i3.FilePermission.values.byName(name),
      _ => null
    };
set permissions (FilePermission? value)

Implementation

set permissions(_i3.FilePermission? value) {
  _i5.setProperty(
    this,
    'permissions',
    value?.name ?? _i6.undefined,
  );
}