ServicesBuilder.create constructor

ServicesBuilder.create({
  1. ServiceFactory? contentProtection,
  2. ServiceFactory? cover,
  3. ServiceFactory? locator = _defaultLocator,
  4. ServiceFactory? positions,
})

Implementation

factory ServicesBuilder.create(
        {ServiceFactory? contentProtection,
        ServiceFactory? cover,
        ServiceFactory? locator = _defaultLocator,
        ServiceFactory? positions}) =>
    ServicesBuilder._({
      if (contentProtection != null)
        ContentProtectionService: contentProtection,
      if (cover != null) CoverService: cover,
      if (locator != null) LocatorService: locator,
      if (positions != null) PositionsService: positions
    });