IntroductionService constructor

IntroductionService([
  1. IntroductionInterface? dataProvider
])

Constructs an instance of IntroductionService.

Optionally takes a dataProvider parameter, which is an implementation of IntroductionInterface. If no data provider is provided, it defaults to LocalIntroductionDataProvider.

Implementation

IntroductionService([IntroductionInterface? dataProvider])
    : _dataProvider = dataProvider ?? LocalIntroductionDataProvider();