FileWillCreateEvent class

An event that is fired when files are going to be created.

To make modifications to the workspace before the files are created, call the {@linkcode FileWillCreateEvent.waitUntilwaitUntil}-function with a thenable that resolves to a {@link WorkspaceEditworkspace edit}.

Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

FileWillCreateEvent({CancellationToken? token, List<Uri>? files})
factory

Properties

files List<Uri>

Available on FileWillCreateEvent, provided by the FileWillCreateEvent$Typings extension

The files that are going to be created.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token CancellationToken

Available on FileWillCreateEvent, provided by the FileWillCreateEvent$Typings extension

A cancellation token.
no setter
waitUntil → ({void Function(Future thenable) $1, void Function(Future thenable) $2})

Available on FileWillCreateEvent, provided by the FileWillCreateEvent$Typings extension

Overload accessor: $1, $2
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited