Skip to content

Commit

Permalink
doc: improve instance setter docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dtscalac committed Apr 18, 2024
1 parent 1e7c196 commit e9ee90b
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -16,7 +16,9 @@ abstract class DependencyProvider {
return _instance!;
}

/// Sets a new instance
/// Sets an instance of [DependencyProvider].
///
/// Must be called before the instance could be accessed.
static set instance(DependencyProvider instance) {
if (_instance != null) {
throw StateError(
Expand Down

0 comments on commit e9ee90b

Please sign in to comment.