BuildContext constructor

BuildContext({
  1. ObjectMapper? objectMapper,
  2. ValidationService? validationService,
  3. ExceptionHandler? exceptionHandler,
  4. DependencyInjection? dependencyInjection,
})

Implementation

BuildContext({
  ObjectMapper? objectMapper,
  ValidationService? validationService,
  ExceptionHandler? exceptionHandler,
  DependencyInjection? dependencyInjection,
})  : timestamp = DateTime.now(),
      objectMapper = objectMapper ?? ObjectMapperImpl(),
      validationService = validationService ?? ValidationServiceImpl(),
      exceptionHandler = exceptionHandler ?? SimpleExceptionHandler(),
      dependencyInjection =
          dependencyInjection ?? DependencyInjection.build();