cubepod_resources 0.1.3 copy "cubepod_resources: ^0.1.3" to clipboard
cubepod_resources: ^0.1.3 copied to clipboard

A core component of the CubePod Application Runtime. Provides cubepod_resources functionalities.

cubepod_resources #

Managed resource loading for CubePod. Handles loading, caching, and releasing assets, configs, or any external resources tied to CubePod's scope lifecycle.

Install #

dependencies:
  cubepod_resources: ^0.1.1

Usage #

import 'package:cubepod_resources/cubepod_resources.dart';

final resources = CubePod.get<ResourceManager>();

// Load and cache a config file
final config = await resources.load<AppConfig>(
  key: 'app-config',
  loader: () => fetchRemoteConfig(),
);

// Release when no longer needed
resources.release('app-config');

See cubepod for the full docs.

0
likes
0
points
330
downloads

Publisher

unverified uploader

Weekly Downloads

A core component of the CubePod Application Runtime. Provides cubepod_resources functionalities.

License

unknown (license)

More

Packages that depend on cubepod_resources