DevResourcesMixin constructor

DevResourcesMixin({
  1. Future<List<DevResourceWithNodeId>> getDevResourcesAsync([
    1. dynamic
    ])?,
  2. Future<void> addDevResourceAsync(
    1. String, [
    2. String?
    ])?,
  3. Future<void> editDevResourceAsync(
    1. String,
    2. dynamic
    )?,
  4. Future<void> deleteDevResourceAsync(
    1. String
    )?,
  5. Future<void> setDevResourcePreviewAsync(
    1. String,
    2. PlainTextElement
    )?,
})

Implementation

factory DevResourcesMixin({
  _i2.Future<_i2.List<_i3.DevResourceWithNodeId>> Function([_i2.dynamic])?
      getDevResourcesAsync,
  _i2.Future<void> Function(
    _i2.String, [
    _i2.String?,
  ])? addDevResourceAsync,
  _i2.Future<void> Function(
    _i2.String,
    _i2.dynamic,
  )? editDevResourceAsync,
  _i2.Future<void> Function(_i2.String)? deleteDevResourceAsync,
  _i2.Future<void> Function(
    _i2.String,
    _i3.PlainTextElement,
  )? setDevResourcePreviewAsync,
}) =>
    DevResourcesMixin._(
      getDevResourcesAsync: getDevResourcesAsync == null
          ? null
          : _i5.allowInterop(getDevResourcesAsync),
      addDevResourceAsync: addDevResourceAsync == null
          ? null
          : _i5.allowInterop(addDevResourceAsync),
      editDevResourceAsync: editDevResourceAsync == null
          ? null
          : _i5.allowInterop(editDevResourceAsync),
      deleteDevResourceAsync: deleteDevResourceAsync == null
          ? null
          : _i5.allowInterop(deleteDevResourceAsync),
      setDevResourcePreviewAsync: setDevResourcePreviewAsync == null
          ? null
          : _i5.allowInterop(setDevResourcePreviewAsync),
    );