FileDecorationProvider constructor
FileDecorationProvider({
- Event? onDidChangeFileDecorations,
- FutureOr<
FileDecoration> provideFileDecoration()?,
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,
))),
);