# onReady abstract method

Future<void> onReady()

Interface to be implemented by pods that require initialization logic after their properties have been set by the container.

This can be used to validate configuration, open connections, or perform any logic that depends on dependency injection being complete.

### Usage Example:

    class MyRepository implements InitializingPod {
      late DatabaseClient client;

      @override
      void onReady() {
        if (client == null) {
          throw Exception('Database client must be set');
        }
      }
    }

Called automatically after dependency injection and before the pod is used.

## Implementation

    Future<void> onReady();