AnnotationsAPI constructor

AnnotationsAPI({
  1. Future<List<AnnotationCategory>> getAnnotationCategoriesAsync()?,
  2. Future<AnnotationCategory?> getAnnotationCategoryByIdAsync(
    1. String
    )?,
  3. Future<AnnotationCategory> addAnnotationCategoryAsync(
    1. dynamic
    )?,
})

Implementation

factory AnnotationsAPI({
  _i2.Future<_i2.List<_i3.AnnotationCategory>> Function()?
      getAnnotationCategoriesAsync,
  _i2.Future<_i3.AnnotationCategory?> Function(_i2.String)?
      getAnnotationCategoryByIdAsync,
  _i2.Future<_i3.AnnotationCategory> Function(_i2.dynamic)?
      addAnnotationCategoryAsync,
}) =>
    AnnotationsAPI._(
      getAnnotationCategoriesAsync: getAnnotationCategoriesAsync == null
          ? null
          : _i5.allowInterop(getAnnotationCategoriesAsync),
      getAnnotationCategoryByIdAsync: getAnnotationCategoryByIdAsync == null
          ? null
          : _i5.allowInterop(getAnnotationCategoryByIdAsync),
      addAnnotationCategoryAsync: addAnnotationCategoryAsync == null
          ? null
          : _i5.allowInterop(addAnnotationCategoryAsync),
    );