FileDecorationProvider constructor

FileDecorationProvider({
  1. Event? onDidChangeFileDecorations,
  2. FutureOr<FileDecoration> provideFileDecoration(
    1. Uri,
    2. CancellationToken
    )?,
})

Implementation

factory FileDecorationProvider({
  _i3.Event<_i2.dynamic>? onDidChangeFileDecorations,
  _i4.FutureOr<_i3.FileDecoration> Function(
    _i3.Uri,
    _i3.CancellationToken,
  )? provideFileDecoration,
}) =>
    FileDecorationProvider._(
      onDidChangeFileDecorations: onDidChangeFileDecorations ?? _i6.undefined,
      provideFileDecoration: provideFileDecoration == null
          ? null
          : _i5.allowInterop((
              p0,
              p1,
            ) =>
              _i6.Promise.futureOr(() => provideFileDecoration(
                    p0,
                    p1,
                  ))),
    );