# getSingletonClass method

1. @protected

Class? getSingletonClass(

1. String name

)
inherited

Return the class of the specified singleton pod, if any.

`name`: The name of the singleton pod to get the class for Returns the class of the specified singleton pod, or null if not found

Example:

    final singletonClass = registry.getSingletonClass('userService');
    print('Singleton class: $singletonClass');

## Implementation

    @protected
    Class? getSingletonClass(String name) => _singletonTypes[name];