get method

If this entity exists in the manager's cache, return the cached instance. Otherwise, fetch this entity and return it.

Implementation

@override
Future<CommandPermissions> get() async => manager.permissionsCache[id] ?? await fetch();