JS class
The annotation for JS interop members.
This is meant to signify that a given library, top-level external member, or extension type is a JS interop declaration.
Specifying name customizes the JavaScript name to use. This can be used in the following scenarios:
- Namespacing all the external top-level members, static members, and constructors of a library by annotating the library with a custom name.
- Namespacing all the external static members and constructors of an extension type by annotating the extension type with a custom name.
- Renaming external members by annotating the member with a custom name.
In the case where name is not specified, we default to the Dart name of the extension type and external members.
Note: package:js
exports an @JS
annotation as well. Unlike that
annotation, this is meant for extension types, and will result in more
type-checking for external top-level members.
Constructors
Properties
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