Skip to content

Conversation

@mocki-toki
Copy link
Contributor

No description provided.

@mocki-toki mocki-toki marked this pull request as ready for review October 17, 2024 14:12
extension LifecycleServiceScopeExtensions on ServiceScope {
/// A [LifecycleManager] instance associated with this [ServiceScope].
LifecycleManager get lifecycleManager {
LifecycleManager getLifecycleManager() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Верни геттер, это часть публичного API.

// Resolve lifecycle manager before iteration
// to prevent collection modification
final _lifecycleManager = lifecycleManager;
final lifecycleManager = getLifecycleManager();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Здесь просто напиши = serviceProvider.getRequired<LifecycleManager>();

import 'package:dino/src/collection/service_descriptor.dart';

/// The annotation used to mark a class as a service that
/// The annotation used to mark a final class as a service that
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ошибка из-за автозамены

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants