dart.dom.html
- Getters and Setters
-
document: HtmlDocument
testRunner: TestRunner
window: Window
- Functions
-
query(String selector): Element
queryAll(String selector): ElementList<dynamic>
- Typedefs
-
DatabaseCallback(dynamic database): void
EventListener(Event event): dynamic
MediaStreamTrackSourcesCallback(List<SourceInfo> sources): void
MetadataCallback(Metadata metadata): void
MidiErrorCallback(DomError error): void
MidiSuccessCallback(MidiAccess access, bool sysex): void
MutationCallback(List<MutationRecord> mutations, MutationObserver observer): void
RequestAnimationFrameCallback(num highResTime): void
RtcStatsCallback(RtcStatsResponse response): void
StorageErrorCallback(DomError error): void
StorageQuotaCallback(int grantedQuotaInBytes): void
StorageUsageCallback(int currentUsageInBytes, int currentQuotaInBytes): void
TimeoutHandler(): void
VoidCallback(): void
- Classes
-
AbstractWorker
AesCbcParams
AesKeyGenParams
Algorithm
AnchorElement
AnimationEvent
ApplicationCache
AreaElement
AudioElement
AutocompleteErrorEvent
BRElement
BarProp
BaseElement
BeforeLoadEvent
BeforeUnloadEvent
BindingDelegate
Blob
BodyElement
ButtonElement
ButtonInputElement
CDataSection
Canvas2DContextAttributes
CanvasElement
CanvasGradient
CanvasImageSource
CanvasPattern
CanvasRenderingContext
CanvasRenderingContext2D
CharacterData
CheckboxInputElement
ChildNode
CloseEvent
Comment
Composition
CompositionEvent
Console
ConsoleBase
ContentElement
Coordinates
Crypto
CryptoKey
Css
CssCharsetRule
CssClassSet
CssFilterRule
CssFilterValue
CssFontFaceLoadEvent
CssFontFaceRule
CssHostRule
CssImportRule
CssKeyframeRule
CssKeyframesRule
CssMatrix
CssMediaRule
CssMixFunctionValue
CssPageRule
CssRect
CssRegionRule
CssRule
CssStyleDeclaration
CssStyleDeclarationBase
CssStyleRule
CssStyleSheet
CssSupportsRule
CssTransformValue
CssUnknownRule
CssVariablesMap
CssViewportRule
CustomEvent
DListElement
DataListElement
DataTransfer
DataTransferItem
DataTransferItemList
DateInputElement
DedicatedWorkerGlobalScope
DetailsElement
DeviceAcceleration
DeviceMotionEvent
DeviceOrientationEvent
DeviceRotationRate
DialogElement
Dimension
DirectoryEntry
DirectoryReader
DivElement
Document
DocumentFragment
DocumentType
DomError
DomException
DomImplementation
DomParser
DomSettableTokenList
DomStringList
DomStringMap
DomTokenList
Element
ElementList
ElementStream
EmailInputElement
EmbedElement
Entry
ErrorEvent
Event
EventSource
EventStreamProvider
EventTarget
Events
FieldSetElement
File
FileEntry
FileError
FileList
FileReader
FileStream
FileSystem
FileUploadInputElement
FileWriter
FixedSizeListIterator
FocusEvent
FontLoader
FormData
FormElement
Gamepad
Geolocation
Geoposition
HRElement
HashChangeEvent
HeadElement
HeadingElement
HiddenInputElement
History
HistoryBase
HmacKeyParams
HmacParams
HtmlAllCollection
HtmlCollection
HtmlDocument
HtmlElement
HtmlFormControlsCollection
HtmlHtmlElement
HtmlOptionsCollection
HttpRequest
HttpRequestProgressEvent
HttpRequestUpload
IFrameElement
ImageBitmap
ImageButtonInputElement
ImageData
ImageElement
ImmutableListMixin
InputElement
InputElementBase
InputMethodContext
KeyCode
KeyEvent
KeyLocation
KeyName
KeyboardEvent
KeyboardEventStream
KeygenElement
LIElement
LabelElement
LegendElement
LinkElement
LocalDateTimeInputElement
Location
LocationBase
MapElement
MediaController
MediaElement
MediaError
MediaKeyError
MediaKeyEvent
MediaKeyMessageEvent
MediaKeyNeededEvent
MediaKeySession
MediaKeys
MediaList
MediaQueryList
MediaQueryListListener
MediaSource
MediaStream
MediaStreamEvent
MediaStreamTrack
MediaStreamTrackEvent
MemoryInfo
MenuElement
MessageChannel
MessageEvent
MessagePort
MetaElement
Metadata
MeterElement
MidiAccess
MidiAccessPromise
MidiConnectionEvent
MidiInput
MidiMessageEvent
MidiOutput
MidiPort
MimeType
MimeTypeArray
ModElement
MonthInputElement
MouseEvent
MutationEvent
MutationObserver
MutationRecord
NamedFlow
NamedFlowCollection
Navigator
NavigatorID
NavigatorOnLine
NavigatorUserMediaError
Node
NodeFilter
NodeIterator
NodeList
NodeTreeSanitizer
NodeValidator
NodeValidatorBuilder
Notation
Notification
NotificationCenter
NumberInputElement
OListElement
ObjectElement
OptGroupElement
OptionElement
OutputElement
OverflowEvent
PageTransitionEvent
ParagraphElement
ParamElement
ParentNode
PasswordInputElement
Path
Performance
PerformanceEntry
PerformanceMark
PerformanceMeasure
PerformanceNavigation
PerformanceResourceTiming
PerformanceTiming
Platform
Plugin
PluginArray
Point
PopStateEvent
PositionError
PreElement
ProcessingInstruction
ProgressElement
ProgressEvent
Promise
PromiseResolver
QuoteElement
RadioButtonInputElement
Range
RangeInputElement
RangeInputElementBase
ReadyState
ReceivePortSync
Rect
RectBase
ResetButtonInputElement
ResourceProgressEvent
RsaKeyGenParams
RsaSsaParams
RtcDataChannel
RtcDataChannelEvent
RtcDtmfSender
RtcDtmfToneChangeEvent
RtcIceCandidate
RtcIceCandidateEvent
RtcPeerConnection
RtcSessionDescription
RtcStatsReport
RtcStatsResponse
Screen
ScriptElement
ScrollAlignment
SearchInputElement
SecurityPolicy
SecurityPolicyViolationEvent
SelectElement
Selection
ShadowElement
ShadowRoot
SharedWorkerGlobalScope
SourceBuffer
SourceBufferList
SourceElement
SourceInfo
SpanElement
SpeechGrammar
SpeechGrammarList
SpeechInputEvent
SpeechInputResult
SpeechRecognition
SpeechRecognitionAlternative
SpeechRecognitionError
SpeechRecognitionEvent
SpeechRecognitionResult
SpeechSynthesis
SpeechSynthesisEvent
SpeechSynthesisUtterance
SpeechSynthesisVoice
Storage
StorageEvent
StorageInfo
StorageInfoUsage
StorageQuota
StyleElement
StyleMedia
StyleSheet
SubmitButtonInputElement
TableCaptionElement
TableCellElement
TableColElement
TableElement
TableRowElement
TableSectionElement
TelephoneInputElement
TemplateElement
TemplateInstance
TestRunner
Text
TextAreaElement
TextEvent
TextInputElement
TextInputElementBase
TextMetrics
TextTrack
TextTrackCue
TextTrackCueList
TextTrackList
TimeInputElement
TimeRanges
TitleElement
Touch
TouchEvent
TouchList
TrackElement
TrackEvent
TransitionEvent
TreeWalker
UIEvent
UListElement
UnknownElement
UriPolicy
Url
UrlInputElement
ValidityState
VideoElement
WebSocket
WeekInputElement
WheelEvent
Window
WindowBase
WindowBase64
WindowTimers
Worker
WorkerConsole
WorkerCrypto
WorkerGlobalScope
WorkerPerformance
XPathEvaluator
XPathExpression
XPathNSResolver
XPathResult
XmlHttpRequestEventTarget
XmlSerializer
XsltProcessor
HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model).
This library includes DOM element types, CSS styling, local storage, media, speech, events, and more. To get started, check out the Element
class, the base class for many of the HTML DOM types.
Other resources
- If you've never written a web app before, try our
tutorials—
A Game of Darts
(http://dartlang.org/docs/tutorials).
- To see some web-based Dart apps in action and to play with the code,
download
Dart Editor
(http://www.dartlang.org/#get-started) and run its built-in examples.
- For even more examples, see
Dart HTML5 Samples
(https://github.com/dart-lang/dart-html5-samples) on Github.
Getters and Setters
static HtmlDocument get document
Root node for all content in a web page.
static TestRunner get testRunner
static Window get window
Top-level container for a web page, which is usually a browser tab or window.
Each web page loaded in the browser has its own Window
, which is a container for the web page.
If the web page has any <iframe>
elements, then each <iframe>
has its own Window
object, which is accessible only to that <iframe>
.
See also:
Window
(https://developer.mozilla.org/en-US/docs/Web/API/window) from MDN.
Functions
Typedefs
@
@
typedef void DatabaseCallback(dynamic database):
typedef dynamic EventListener(Event event):
@
@
typedef void MediaStreamTrackSourcesCallback(List<SourceInfo> sources):
@
@
typedef void MetadataCallback(Metadata metadata):
@
@
typedef void MidiErrorCallback(DomError error):
@
@
typedef void MidiSuccessCallback(MidiAccess access, bool sysex):
@
typedef void MutationCallback(List<MutationRecord> mutations, MutationObserver observer):
@
typedef void RequestAnimationFrameCallback(num highResTime):
@
@
typedef void RtcStatsCallback(RtcStatsResponse response):
@
@
typedef void StorageErrorCallback(DomError error):
@
@
typedef void StorageQuotaCallback(int grantedQuotaInBytes):
@
@
typedef void StorageUsageCallback(int currentUsageInBytes, int currentQuotaInBytes):
@
typedef void TimeoutHandler():
@
@
typedef void VoidCallback():
@
@
Class AbstractWorker extends NativeFieldWrapperClass1 implements EventTarget
- Static Fields
-
errorEvent: EventStreamProvider
- Fields
-
onError: Stream
- Getters and Setters
-
onError: Stream<ErrorEvent>
- Constructors
-
AbstractWorker()
Static Fields
@
@
static const EventStreamProvider errorEvent
Fields
final Stream onError
Getters and Setters
@
@
Stream<ErrorEvent> get onError
Constructors
AbstractWorker()
@
@
@
Class AesCbcParams extends Algorithm
- Fields
-
iv: Uint8List
- Getters and Setters
-
iv: Uint8List
Fields
final Uint8List iv
Getters and Setters
@
@
@
Uint8List get iv
@
@
@
Class AesKeyGenParams extends Algorithm
- Fields
-
length: int
- Getters and Setters
-
length: int
Fields
final int length
Getters and Setters
@
@
@
int get length
@
@
@
Class Algorithm extends NativeFieldWrapperClass1
- Fields
-
name: String
- Getters and Setters
-
name: String
- Constructors
-
Algorithm()
Fields
final String name
Getters and Setters
@
@
@
String get name
Constructors
Algorithm()
@
@
Class AnchorElement extends HtmlElement
- Fields
-
download: String
hash: String
host: String
hostname: String
href: String
hreflang: String
name: String
origin: String
pathname: String
ping: String
port: String
protocol: String
rel: String
search: String
target: String
type: String
- Getters and Setters
-
download: String
download=(String value)
hash: String
hash=(String value)
host: String
host=(String value)
hostname: String
hostname=(String value)
href: String
href=(String value)
hreflang: String
hreflang=(String value)
name: String
name=(String value)
origin: String
pathname: String
pathname=(String value)
ping: String
ping=(String value)
port: String
port=(String value)
protocol: String
protocol=(String value)
rel: String
rel=(String value)
search: String
search=(String value)
target: String
target=(String value)
type: String
type=(String value)
- Constructors
-
AnchorElement(String href)
- Methods
-
toString(): String
Fields
String download
String hash
String host
String hostname
String href
String hreflang
String name
final String origin
String pathname
String ping
String port
String protocol
String rel
String search
String target
String type
Getters and Setters
@
@
String get download
@
@
set download=(String value)
@
@
String get hash
@
@
set hash=(String value)
@
@
String get host
@
@
set host=(String value)
@
@
String get hostname
@
@
set hostname=(String value)
@
@
String get href
@
@
set href=(String value)
@
@
String get hreflang
@
@
set hreflang=(String value)
@
@
@deprecated
String get name
@
@
@deprecated
set name=(String value)
@
@
@deprecated
String get origin
@
@
String get pathname
@
@
set pathname=(String value)
@
@
@deprecated
String get ping
@
@
@deprecated
set ping=(String value)
@
@
String get port
@
@
set port=(String value)
@
@
String get protocol
@
@
set protocol=(String value)
@
@
String get rel
@
@
set rel=(String value)
@
@
String get search
@
@
set search=(String value)
@
@
String get target
@
@
set target=(String value)
@
@
String get type
@
@
set type=(String value)
Constructors
@
@
factory AnchorElement(String href)
Methods
@
@
String toString()
Print out a String representation of this Node.
@
@
@
@
@
Class AnimationEvent extends Event
- Fields
-
animationName: String
elapsedTime: double
- Getters and Setters
-
animationName: String
elapsedTime: double
Fields
final String animationName
final double elapsedTime
Getters and Setters
@
@
String get animationName
@
@
double get elapsedTime
@
@
@
@
@
@
@
@
Class ApplicationCache extends EventTarget
- Static Fields
-
CHECKING: int
DOWNLOADING: int
IDLE: int
OBSOLETE: int
UNCACHED: int
UPDATEREADY: int
cachedEvent: EventStreamProvider
checkingEvent: EventStreamProvider
downloadingEvent: EventStreamProvider
errorEvent: EventStreamProvider
noUpdateEvent: EventStreamProvider
obsoleteEvent: EventStreamProvider
progressEvent: EventStreamProvider
supported: bool
updateReadyEvent: EventStreamProvider
- Fields
-
onCached: Stream
onChecking: Stream
onDownloading: Stream
onError: Stream
onNoUpdate: Stream
onObsolete: Stream
onProgress: Stream
onUpdateReady: Stream
status: int
- Getters and Setters
-
onCached: Stream<Event>
onChecking: Stream<Event>
onDownloading: Stream<Event>
onError: Stream<Event>
onNoUpdate: Stream<Event>
onObsolete: Stream<Event>
onProgress: Stream<ProgressEvent>
onUpdateReady: Stream<Event>
status: int
supported: bool
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
abort(): void
dispatchEvent(Event event): bool
swapCache(): void
update(): void
Static Fields
@
@
static const int CHECKING = 2
@
@
static const int DOWNLOADING = 3
@
@
static const int IDLE = 1
@
@
static const int OBSOLETE = 5
@
@
static const int UNCACHED = 0
@
@
static const int UPDATEREADY = 4
@
@
static const EventStreamProvider cachedEvent
@
@
static const EventStreamProvider checkingEvent
@
@
static const EventStreamProvider downloadingEvent
@
@
static const EventStreamProvider errorEvent
@
@
static const EventStreamProvider noUpdateEvent
@
@
static const EventStreamProvider obsoleteEvent
@
@
static const EventStreamProvider progressEvent
static final bool supported
@
@
static const EventStreamProvider updateReadyEvent
Fields
final Stream onCached
final Stream onChecking
final Stream onDownloading
final Stream onError
final Stream onNoUpdate
final Stream onObsolete
final Stream onProgress
final Stream onUpdateReady
final int status
Getters and Setters
@
@
Stream<Event> get onCached
@
@
Stream<Event> get onChecking
@
@
Stream<Event> get onDownloading
@
@
Stream<Event> get onError
@
@
Stream<Event> get onNoUpdate
@
@
Stream<Event> get onObsolete
@
@
Stream<ProgressEvent> get onProgress
@
@
Stream<Event> get onUpdateReady
@
@
int get status
static bool get supported
Checks if this type is supported on the current platform.
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
void abort()
@
@
bool dispatchEvent(Event event)
@
@
void swapCache()
@
@
void update()
@
@
Class AreaElement extends HtmlElement
- Fields
-
alt: String
coords: String
hash: String
host: String
hostname: String
href: String
pathname: String
ping: String
port: String
protocol: String
search: String
shape: String
target: String
- Getters and Setters
-
alt: String
alt=(String value)
coords: String
coords=(String value)
hash: String
host: String
hostname: String
href: String
href=(String value)
pathname: String
ping: String
ping=(String value)
port: String
protocol: String
search: String
shape: String
shape=(String value)
target: String
target=(String value)
- Constructors
-
AreaElement()
DOM Area Element, which links regions of an image map with a hyperlink.
The element can also define an uninteractive region of the map.
See also:
<area>
(https://developer.mozilla.org/en-US/docs/HTML/Element/area)
on MDN.
Fields
String alt
String coords
final String hash
final String host
final String hostname
String href
final String pathname
String ping
final String port
final String protocol
final String search
String shape
String target
Getters and Setters
@
@
String get alt
@
@
set alt=(String value)
@
@
String get coords
@
@
set coords=(String value)
@
@
String get hash
@
@
String get host
@
@
String get hostname
@
@
String get href
@
@
set href=(String value)
@
@
String get pathname
@
@
@deprecated
String get ping
@
@
@deprecated
set ping=(String value)
@
@
String get port
@
@
String get protocol
@
@
String get search
@
@
String get shape
@
@
set shape=(String value)
@
@
String get target
@
@
set target=(String value)
Constructors
@
@
factory AreaElement()
@
@
Class AudioElement extends MediaElement
- Constructors
-
AudioElement(String src)
Constructors
@
@
factory AudioElement(String src)
@
@
@
Class AutocompleteErrorEvent extends Event
- Fields
-
reason: String
- Getters and Setters
-
reason: String
Fields
final String reason
Getters and Setters
@
@
String get reason
@
@
Class BRElement extends HtmlElement
- Constructors
-
BRElement()
Constructors
@
@
factory BRElement()
@
@
@deprecated
Class BarProp extends NativeFieldWrapperClass1
- Fields
-
visible: bool
- Getters and Setters
-
visible: bool
- Constructors
-
BarProp()
Fields
final bool visible
Getters and Setters
@
@
bool get visible
Constructors
BarProp()
@
@
Class BaseElement extends HtmlElement
- Fields
-
href: String
target: String
- Getters and Setters
-
href: String
href=(String value)
target: String
target=(String value)
- Constructors
-
BaseElement()
Fields
String href
String target
Getters and Setters
@
@
String get href
@
@
set href=(String value)
@
@
String get target
@
@
set target=(String value)
Constructors
@
@
factory BaseElement()
@
@
@
Class BeforeLoadEvent extends Event
- Fields
-
url: String
- Getters and Setters
-
url: String
Fields
final String url
Getters and Setters
@
@
String get url
Abstract class BeforeUnloadEvent implements Event
- Fields
-
returnValue: String
- Constructors
-
BeforeUnloadEvent()
Event object that is fired before the window is closed.
The standard window close behavior can be prevented by setting the returnValue. This will display a dialog to the user confirming that they want to close the page.
Fields
String returnValue
If set to a non-null value, a dialog will be presented to the user confirming that they want to close the page.
Constructors
BeforeUnloadEvent()
@
Abstract class BindingDelegate
- Constructors
-
BindingDelegate()
- Methods
-
getBinding(dynamic model, String path, dynamic name, dynamic node): dynamic
getInstanceModel(Element template, dynamic model): dynamic
Model-Driven Views (MDV)'s native features enables a wide-range of use cases, but (by design) don't attempt to implement a wide array of specialized behaviors.
Enabling these features in MDV is a matter of implementing and registering an MDV Custom Syntax. A Custom Syntax is an object which contains one or more delegation functions which implement specialized behavior. This object is registered with MDV via Element.bindingDelegate
:
HTML:
<template bind>
{{ What!Ever('crazy')->thing^^^I+Want(data) }}
</template>
Dart:
class MySyntax extends BindingDelegate {
getBinding(model, path, name, node) {
// The magic happens here!
}
}
...
query('template').bindingDelegate = new MySyntax();
query('template').model = new MyModel();
See <https://github.com/polymer-project/mdv/blob/master/docs/syntax.md> for more information about Custom Syntax.
Constructors
BindingDelegate()
Methods
dynamic getBinding(dynamic model, String path, dynamic name, dynamic node)
This syntax method allows for a custom interpretation of the contents of mustaches ({{
... }}
).
When a template is inserting an instance, it will invoke this method for each mustache which is encountered. The function is invoked with four arguments:
- model
: The data context for which this instance is being created. - path
: The text contents (trimmed of outer whitespace) of the mustache. - name
: The context in which the mustache occurs. Within element attributes, this will be the name of the attribute. Within text, this will be 'text'. - node
: A reference to the node to which this binding will be created.
If the method wishes to handle binding, it is required to return an object which has at least a value
property that can be observed. If it does, then MDV will call [Node.bind on the node:
node.bind(name, retval, 'value');
If the 'getBinding' does not wish to override the binding, it should return null.
dynamic getInstanceModel(Element template, dynamic model)
This syntax method allows a syntax to provide an alterate model than the one the template would otherwise use when producing an instance.
When a template is about to create an instance, it will invoke this method The function is invoked with two arguments:
- template
: The template element which is about to create and insert an instance. - model
: The data context for which this instance is being created.
The template element will always use the return value of getInstanceModel
as the model for the new instance. If the syntax does not wish to override the value, it should simply return the model
value it was passed.
@
Class Blob extends NativeFieldWrapperClass1
- Fields
-
size: int
type: String
- Getters and Setters
-
size: int
type: String
- Constructors
-
Blob(List<dynamic> blobParts, String type, String endings)
- Methods
-
slice(int start, int end, String contentType): Blob
Fields
final int size
final String type
Getters and Setters
@
@
int get size
@
@
String get type
Constructors
@
@
factory Blob(List<dynamic> blobParts, String type, String endings)
Methods
Blob slice(int start, int end, String contentType)
@
@
Class BodyElement extends HtmlElement
- Static Fields
-
blurEvent: EventStreamProvider
errorEvent: EventStreamProvider
focusEvent: EventStreamProvider
hashChangeEvent: EventStreamProvider
loadEvent: EventStreamProvider
messageEvent: EventStreamProvider
offlineEvent: EventStreamProvider
onlineEvent: EventStreamProvider
popStateEvent: EventStreamProvider
resizeEvent: EventStreamProvider
storageEvent: EventStreamProvider
unloadEvent: EventStreamProvider
- Fields
-
onBlur: ElementStream
onError: ElementStream
onFocus: ElementStream
onHashChange: ElementStream
onLoad: ElementStream
onMessage: ElementStream
onOffline: ElementStream
onOnline: ElementStream
onPopState: ElementStream
onResize: ElementStream
onStorage: ElementStream
onUnload: ElementStream
- Getters and Setters
-
onBlur: ElementStream<Event>
onError: ElementStream<Event>
onFocus: ElementStream<Event>
onHashChange: ElementStream<Event>
onLoad: ElementStream<Event>
onMessage: ElementStream<MessageEvent>
onOffline: ElementStream<Event>
onOnline: ElementStream<Event>
onPopState: ElementStream<PopStateEvent>
onResize: ElementStream<Event>
onStorage: ElementStream<StorageEvent>
onUnload: ElementStream<Event>
- Constructors
-
BodyElement()
Static Fields
@
@
static const EventStreamProvider blurEvent
@
@
static const EventStreamProvider errorEvent
@
@
static const EventStreamProvider focusEvent
@
@
static const EventStreamProvider hashChangeEvent
@
@
static const EventStreamProvider loadEvent
@
@
static const EventStreamProvider messageEvent
@
@
static const EventStreamProvider offlineEvent
@
@
static const EventStreamProvider onlineEvent
@
@
static const EventStreamProvider popStateEvent
@
@
static const EventStreamProvider resizeEvent
@
@
static const EventStreamProvider storageEvent
@
@
static const EventStreamProvider unloadEvent
Fields
final ElementStream onBlur
final ElementStream onError
final ElementStream onFocus
final ElementStream onHashChange
final ElementStream onLoad
final ElementStream onMessage
final ElementStream onOffline
final ElementStream onOnline
final ElementStream onPopState
final ElementStream onResize
final ElementStream onStorage
final ElementStream onUnload
Getters and Setters
@
@
ElementStream<Event> get onBlur
@
@
ElementStream<Event> get onError
@
@
ElementStream<Event> get onFocus
@
@
ElementStream<Event> get onHashChange
@
@
ElementStream<Event> get onLoad
@
@
ElementStream<MessageEvent> get onMessage
@
@
ElementStream<Event> get onOffline
@
@
ElementStream<Event> get onOnline
@
@
ElementStream<PopStateEvent> get onPopState
@
@
ElementStream<Event> get onResize
@
@
ElementStream<StorageEvent> get onStorage
@
@
ElementStream<Event> get onUnload
Constructors
@
@
factory BodyElement()
@
@
Class ButtonElement extends HtmlElement
- Fields
-
autofocus: bool
disabled: bool
form: FormElement
formAction: String
formEnctype: String
formMethod: String
formNoValidate: bool
formTarget: String
labels: List
name: String
type: String
validationMessage: String
validity: ValidityState
value: String
willValidate: bool
- Getters and Setters
-
autofocus: bool
autofocus=(bool value)
disabled: bool
disabled=(bool value)
form: FormElement
formAction: String
formAction=(String value)
formEnctype: String
formEnctype=(String value)
formMethod: String
formMethod=(String value)
formNoValidate: bool
formNoValidate=(bool value)
formTarget: String
formTarget=(String value)
labels: List<Node>
name: String
name=(String value)
type: String
type=(String value)
validationMessage: String
validity: ValidityState
value: String
value=(String value)
willValidate: bool
- Constructors
-
ButtonElement()
- Methods
-
checkValidity(): bool
setCustomValidity(String error): void
Fields
bool autofocus
bool disabled
final FormElement form
String formAction
String formEnctype
String formMethod
bool formNoValidate
String formTarget
final List labels
String name
String type
final String validationMessage
final ValidityState validity
String value
final bool willValidate
Getters and Setters
@
@
bool get autofocus
@
@
set autofocus=(bool value)
@
@
bool get disabled
@
@
set disabled=(bool value)
@
@
FormElement get form
@
@
String get formAction
@
@
set formAction=(String value)
@
@
String get formEnctype
@
@
set formEnctype=(String value)
@
@
String get formMethod
@
@
set formMethod=(String value)
@
@
bool get formNoValidate
@
@
set formNoValidate=(bool value)
@
@
String get formTarget
@
@
set formTarget=(String value)
@
@
@
List<Node> get labels
@
@
String get name
@
@
set name=(String value)
@
@
String get type
@
@
set type=(String value)
@
@
String get validationMessage
@
@
ValidityState get validity
@
@
String get value
@
@
set value=(String value)
@
@
bool get willValidate
Constructors
@
@
factory ButtonElement()
Methods
@
@
bool checkValidity()
@
@
void setCustomValidity(String error)
Abstract class ButtonInputElement implements InputElementBase
- Constructors
-
ButtonInputElement()
A button, with no default behavior.
Constructors
factory ButtonInputElement()
@
@
@deprecated
Class CDataSection extends Text
@
@
@
Class Canvas2DContextAttributes extends NativeFieldWrapperClass1
- Fields
-
alpha: bool
- Getters and Setters
-
alpha: bool
alpha=(bool value)
- Constructors
-
Canvas2DContextAttributes()
Fields
bool alpha
Getters and Setters
@
@
bool get alpha
@
@
set alpha=(bool value)
Constructors
Canvas2DContextAttributes()
- Static Fields
-
webGlContextLostEvent: EventStreamProvider
webGlContextRestoredEvent: EventStreamProvider
- Fields
-
context2D: CanvasRenderingContext2D
context2d: CanvasRenderingContext2D
height: int
onWebGlContextLost: ElementStream
onWebGlContextRestored: ElementStream
width: int
- Getters and Setters
-
context2D: CanvasRenderingContext2D
context2d: CanvasRenderingContext2D
height: int
height=(int value)
onWebGlContextLost: ElementStream<ContextEvent>
onWebGlContextRestored: ElementStream<ContextEvent>
width: int
width=(int value)
- Constructors
-
CanvasElement(int width, int height)
- Methods
-
getContext(String contextId, Map<dynamic, dynamic> attrs): CanvasRenderingContext
getContext3d(dynamic alpha, dynamic depth, dynamic stencil, dynamic antialias, dynamic premultipliedAlpha, dynamic preserveDrawingBuffer): RenderingContext
toDataUrl(String type, num quality): String
Static Fields
@
@
static const EventStreamProvider webGlContextLostEvent
@
@
static const EventStreamProvider webGlContextRestoredEvent
Fields
final CanvasRenderingContext2D context2D
final CanvasRenderingContext2D context2d
int height
final ElementStream onWebGlContextLost
final ElementStream onWebGlContextRestored
int width
Getters and Setters
CanvasRenderingContext2D get context2D
An API for drawing on this canvas.
@deprecated
CanvasRenderingContext2D get context2d
@
@
int get height
The height of this canvas element in CSS pixels.
@
@
set height=(int value)
The height of this canvas element in CSS pixels.
@
@
ElementStream<ContextEvent> get onWebGlContextLost
@
@
ElementStream<ContextEvent> get onWebGlContextRestored
@
@
int get width
The width of this canvas element in CSS pixels.
@
@
set width=(int value)
The width of this canvas element in CSS pixels.
Constructors
@
@
factory CanvasElement(int width, int height)
Methods
@
@
CanvasRenderingContext getContext(String contextId, Map<dynamic, dynamic> attrs)
@
@
@
RenderingContext getContext3d(dynamic alpha, dynamic depth, dynamic stencil, dynamic antialias, dynamic premultipliedAlpha, dynamic preserveDrawingBuffer)
String toDataUrl(String type, num quality)
Returns a data URI containing a representation of the image in the format specified by type (defaults to 'image/png').
Data Uri format is as follow data:<MIME-type>
;charset=<encoding>
;base64
,<data>
Optional parameter quality
in the range of 0.0 and 1.0 can be used when requesting type
'image/jpeg' or 'image/webp'. If quality
is not passed the default value is used. Note: the default value varies by browser.
If the height or width of this canvas element is 0, then 'data:' is returned, representing no data.
If the type requested is not 'image/png', and the returned value is 'data:image/png', then the requested type is not supported.
Example usage:
CanvasElement canvas = new CanvasElement();
var ctx = canvas.context2D
..fillStyle = "rgb(200,0,0)"
..fillRect(10, 10, 55, 50);
var dataUrl = canvas.toDataUrl("image/jpeg", 0.95);
// The Data Uri would look similar to
// 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA
// AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
// 9TXL0Y4OHwAAAABJRU5ErkJggg=='
//Create a new image element from the data URI.
var img = new ImageElement();
img.src = dataUrl;
document.body.children.add(img);
See also:
Data URI Scheme
(http://en.wikipedia.org/wiki/Data_URI_scheme) from Wikipedia.
HTMLCanvasElement
(https://developer.mozilla.org/en-US/docs/DOM/HTMLCanvasElement) from MDN.
toDataUrl
(http://dev.w3.org/html5/spec/the-canvas-element.html#dom-canvas-todataurl) from W3C.
@
@
Class CanvasGradient extends NativeFieldWrapperClass1
- Constructors
-
CanvasGradient()
- Methods
-
addColorStop(num offset, String color): void
An opaque canvas object representing a gradient.
Created by calling createLinearGradient
or createRadialGradient
on a CanvasRenderingContext2D
object.
Example usage:
var canvas = new CanvasElement(width: 600, height: 600);
var ctx = canvas.context2D;
ctx.clearRect(0, 0, 600, 600);
ctx.save();
// Create radial gradient.
CanvasGradient gradient = ctx.createRadialGradient(0, 0, 0, 0, 0, 600);
gradient.addColorStop(0, '#000');
gradient.addColorStop(1, 'rgb(255, 255, 255)');
// Assign gradients to fill.
ctx.fillStyle = gradient;
// Draw a rectangle with a gradient fill.
ctx.fillRect(0, 0, 600, 600);
ctx.save();
document.body.children.add(canvas);
See also:
CanvasGradient
(https://developer.mozilla.org/en-US/docs/DOM/CanvasGradient) from MDN.CanvasGradient
(http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#canvasgradient) from whatwg.CanvasGradient
(http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvasgradient) from W3C.
Constructors
CanvasGradient()
Methods
@
@
void addColorStop(num offset, String color)
Adds a color stop to this gradient at the offset.
The offset
can range between 0.0 and 1.0.
See also:
Multiple Color Stops
(https://developer.mozilla.org/en-US/docs/CSS/linear-gradient#Gradient_with_multiple_color_stops) from MDN.
Abstract class CanvasImageSource
- Constructors
-
CanvasImageSource()
An object that can be drawn to a CanvasRenderingContext2D
object with CanvasRenderingContext2D.drawImage
, CanvasRenderingContext2D.drawImageToRect
, CanvasRenderingContext2D.drawImageScaled
, or CanvasRenderingContext2D.drawImageScaledFromSource
.
If the CanvasImageSource is an ImageElement
then the element's image is used. If the ImageElement
is an animated image, then the poster frame is used. If there is no poster frame, then the first frame of animation is used.
If the CanvasImageSource is a VideoElement
then the frame at the current playback position is used as the image.
If the CanvasImageSource is a CanvasElement
then the element's bitmap is used.
Note: Currently, all versions of Internet Explorer do not support drawing a VideoElement to a canvas. Also, you may experience problems drawing a video to a canvas in Firefox if the source of the video is a data URL.
See also:
CanvasImageSource
(http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#image-sources-for-2d-rendering-contexts)
from the WHATWG.
drawImage
(http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-drawimage)
from the WHATWG.
Constructors
CanvasImageSource()
@
@
Class CanvasPattern extends NativeFieldWrapperClass1
- Constructors
-
CanvasPattern()
An opaque object representing a pattern of image, canvas, or video.
Created by calling createPattern
on a CanvasRenderingContext2D
object.
Example usage:
var canvas = new CanvasElement(width: 600, height: 600);
var ctx = canvas.context2D;
var img = new ImageElement();
// Image src needs to be loaded before pattern is applied.
img.onLoad.listen((event) {
// When the image is loaded, create a pattern
// from the ImageElement.
CanvasPattern pattern = ctx.createPattern(img, 'repeat');
ctx.rect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = pattern;
ctx.fill();
});
img.src = "images/foo.jpg";
document.body.children.add(canvas);
See also:
CanvasPattern
(https://developer.mozilla.org/en-US/docs/DOM/CanvasPattern) from MDN.CanvasPattern
(http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#canvaspattern) from whatwg.CanvasPattern
(http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvaspattern) from W3C.
Constructors
CanvasPattern()
@
@
Class CanvasRenderingContext extends NativeFieldWrapperClass1
- Fields
-
canvas: CanvasElement
- Getters and Setters
-
canvas: CanvasElement
- Constructors
-
CanvasRenderingContext()
A rendering context for a canvas element.
This context is extended by CanvasRenderingContext2D
and WebGLRenderingContext
.
Fields
final CanvasElement canvas
Getters and Setters
@
@
CanvasElement get canvas
Reference to the canvas element to which this context belongs.
Constructors
CanvasRenderingContext()
- Fields
-
backingStorePixelRatio: double
currentPath: Path
fillStyle: dynamic
font: String
globalAlpha: num
globalCompositeOperation: String
imageSmoothingEnabled: bool
lineCap: String
lineDashOffset: num
lineJoin: String
lineWidth: num
miterLimit: num
shadowBlur: num
shadowColor: String
shadowOffsetX: num
shadowOffsetY: num
strokeStyle: dynamic
textAlign: String
textBaseline: String
- Getters and Setters
-
backingStorePixelRatio: double
currentPath: Path
currentPath=(Path value)
fillStyle: dynamic
fillStyle=(dynamic value)
font: String
font=(String value)
globalAlpha: num
globalAlpha=(num value)
globalCompositeOperation: String
globalCompositeOperation=(String value)
imageSmoothingEnabled: bool
imageSmoothingEnabled=(bool value)
lineCap: String
lineCap=(String value)
lineDashOffset: num
lineDashOffset=(num value)
lineJoin: String
lineJoin=(String value)
lineWidth: num
lineWidth=(num value)
miterLimit: num
miterLimit=(num value)
shadowBlur: num
shadowBlur=(num value)
shadowColor: String
shadowColor=(String value)
shadowOffsetX: num
shadowOffsetX=(num value)
shadowOffsetY: num
shadowOffsetY=(num value)
strokeStyle: dynamic
strokeStyle=(dynamic value)
textAlign: String
textAlign=(String value)
textBaseline: String
textBaseline=(String value)
- Methods
-
arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise): void
arcTo(num x1, num y1, num x2, num y2, num radius): void
beginPath(): void
bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y): void
clearRect(num x, num y, num width, num height): void
clip(String winding): void
closePath(): void
createImageData(num sw, num sh): ImageData
createImageDataFromImageData(ImageData imagedata): ImageData
createLinearGradient(num x0, num y0, num x1, num y1): CanvasGradient
createPattern(CanvasElement canvas, String repetitionType): CanvasPattern
createPatternFromImage(ImageElement image, String repetitionType): CanvasPattern
createRadialGradient(num x0, num y0, num r0, num x1, num y1, num r1): CanvasGradient
drawCustomFocusRing(Element element): bool
drawImage(CanvasImageSource source, num destX, num destY): void
drawImageScaled(CanvasImageSource source, num destX, num destY, num destWidth, num destHeight): void
drawImageScaledFromSource(CanvasImageSource source, num sourceX, num sourceY, num sourceWidth, num sourceHeight, num destX, num destY, num destWidth, num destHeight): void
drawImageToRect(CanvasImageSource source, Rect destRect, Rect sourceRect): void
drawSystemFocusRing(Element element): void
fill(String winding): void
fillRect(num x, num y, num width, num height): void
fillText(String text, num x, num y, num maxWidth): void
getContextAttributes(): Canvas2DContextAttributes
getImageData(num sx, num sy, num sw, num sh): ImageData
getImageDataHD(num sx, num sy, num sw, num sh): ImageData
getLineDash(): List<num>
isPointInPath(num x, num y, String winding): bool
isPointInStroke(num x, num y): bool
lineTo(num x, num y): void
measureText(String text): TextMetrics
moveTo(num x, num y): void
putImageData(ImageData imagedata, num dx, num dy, num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight): void
putImageDataHD(ImageData imagedata, num dx, num dy, num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight): void
quadraticCurveTo(num cpx, num cpy, num x, num y): void
rect(num x, num y, num width, num height): void
restore(): void
rotate(num angle): void
save(): void
scale(num sx, num sy): void
setFillColorHsl(int h, num s, num l, num a): void
setFillColorRgb(int r, int g, int b, num a): void
setLineDash(List<num> dash): void
setStrokeColorHsl(int h, num s, num l, num a): void
setStrokeColorRgb(int r, int g, int b, num a): void
setTransform(num m11, num m12, num m21, num m22, num dx, num dy): void
stroke(): void
strokeRect(num x, num y, num width, num height): void
strokeText(String text, num x, num y, num maxWidth): void
transform(num m11, num m12, num m21, num m22, num dx, num dy): void
translate(num tx, num ty): void
Fields
final double backingStorePixelRatio
Path currentPath
dynamic fillStyle
String font
num globalAlpha
String globalCompositeOperation
bool imageSmoothingEnabled
String lineCap
num lineDashOffset
String lineJoin
num lineWidth
num miterLimit
num shadowBlur
String shadowColor
num shadowOffsetX
num shadowOffsetY
dynamic strokeStyle
String textAlign
String textBaseline
Getters and Setters
@
@
@
@
@
double get backingStorePixelRatio
@
@
@
Path get currentPath
@
@
@
set currentPath=(Path value)
@
@
dynamic get fillStyle
@
@
set fillStyle=(dynamic value)
@
@
String get font
@
@
set font=(String value)
@
@
num get globalAlpha
@
@
set globalAlpha=(num value)
@
@
String get globalCompositeOperation
@
@
set globalCompositeOperation=(String value)
@
@
@
bool get imageSmoothingEnabled
@
@
@
set imageSmoothingEnabled=(bool value)
@
@
String get lineCap
@
@
set lineCap=(String value)
@
@
num get lineDashOffset
@
@
set lineDashOffset=(num value)
@
@
String get lineJoin
@
@
set lineJoin=(String value)
@
@
num get lineWidth
@
@
set lineWidth=(num value)
@
@
num get miterLimit
@
@
set miterLimit=(num value)
@
@
num get shadowBlur
@
@
set shadowBlur=(num value)
@
@
String get shadowColor
@
@
set shadowColor=(String value)
@
@
num get shadowOffsetX
@
@
set shadowOffsetX=(num value)
@
@
num get shadowOffsetY
@
@
set shadowOffsetY=(num value)
@
@
dynamic get strokeStyle
@
@
set strokeStyle=(dynamic value)
@
@
String get textAlign
@
@
set textAlign=(String value)
@
@
String get textBaseline
@
@
set textBaseline=(String value)
Methods
@
void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise)
@
@
void arcTo(num x1, num y1, num x2, num y2, num radius)
@
@
void beginPath()
@
@
void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y)
@
@
void clearRect(num x, num y, num width, num height)
void clip(String winding)
@
@
void closePath()
@
@
ImageData createImageData(num sw, num sh)
@
@
ImageData createImageDataFromImageData(ImageData imagedata)
@
@
CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1)
@
@
CanvasPattern createPattern(CanvasElement canvas, String repetitionType)
@
@
CanvasPattern createPatternFromImage(ImageElement image, String repetitionType)
@
@
CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, num r1)
@
@
@
bool drawCustomFocusRing(Element element)
@
void drawImage(CanvasImageSource source, num destX, num destY)
Draws an image from a CanvasImageSource to this canvas.
The entire image from source
will be drawn to this context with its top left corner at the point (destX
, destY
). If the image is larger than canvas will allow, the image will be clipped to fit the available space.
CanvasElement canvas = new CanvasElement(width: 600, height: 600);
CanvasRenderingContext2D ctx = canvas.context2D;
ImageElement img = document.query('img');
ctx.drawImage(img, 100, 100);
VideoElement video = document.query('video');
ctx.drawImage(video, 0, 0);
CanvasElement otherCanvas = document.query('canvas');
otherCanvas.width = 100;
otherCanvas.height = 100;
ctx.drawImage(otherCanvas, 590, 590); // will get clipped
See also:
CanvasImageSource
for more information on what data is retrieved
from
source
.
drawImage
(http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-drawimage)
from the WHATWG.
@
void drawImageScaled(CanvasImageSource source, num destX, num destY, num destWidth, num destHeight)
Draws an image from a CanvasImageSource to an area of this canvas.
The image will be drawn to this context with its top left corner at the point (destX
, destY
) and will be scaled to be destWidth
wide and destHeight
tall.
If the image is larger than canvas will allow, the image will be clipped to fit the available space.
CanvasElement canvas = new CanvasElement(width: 600, height: 600);
CanvasRenderingContext2D ctx = canvas.context2D;
ImageElement img = document.query('img');
img.width = 100;
img.height = 100;
// Scale the image to 300x50 at the point (20, 20)
ctx.drawImageScaled(img, 20, 20, 300, 50);
See also:
CanvasImageSource
for more information on what data is retrieved
from
source
.
drawImage
(http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-drawimage)
from the WHATWG.
@
void drawImageScaledFromSource(CanvasImageSource source, num sourceX, num sourceY, num sourceWidth, num sourceHeight, num destX, num destY, num destWidth, num destHeight)
Draws an image from a CanvasImageSource to an area of this canvas.
The image is a region of source
that is sourceWidth
wide and destHeight
tall with top left corner at (sourceX
, sourceY
). The image will be drawn to this context with its top left corner at the point (destX
, destY
) and will be scaled to be destWidth
wide and destHeight
tall.
If the image is larger than canvas will allow, the image will be clipped to fit the available space.
VideoElement video = document.query('video');
video.width = 100;
video.height = 100;
// Take the middle 20x20 pixels from the video and stretch them.
ctx.drawImageScaledFromSource(video, 40, 40, 20, 20, 50, 50, 100, 100);
// Draw the top 100x20 pixels from the otherCanvas to this one.
CanvasElement otherCanvas = document.query('canvas');
ctx.drawImageScaledFromSource(otherCanvas, 0, 0, 100, 20, 0, 0, 100, 20);
See also:
CanvasImageSource
for more information on what data is retrieved
from
source
.
drawImage
(http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-drawimage)
from the WHATWG.
@
void drawImageToRect(CanvasImageSource source, Rect destRect, Rect sourceRect)
Draws an image from a CanvasImageSource to an area of this canvas.
The image will be drawn to an area of this canvas defined by destRect
. sourceRect
defines the region of the source image that is drawn. If sourceRect
is not provided, then the entire rectangular image from source
will be drawn to this context.
If the image is larger than canvas will allow, the image will be clipped to fit the available space.
CanvasElement canvas = new CanvasElement(width: 600, height: 600);
CanvasRenderingContext2D ctx = canvas.context2D;
ImageElement img = document.query('img');
img.width = 100;
img.height = 100;
// Scale the image to 20x20.
ctx.drawImageToRect(img, new Rect(50, 50, 20, 20));
VideoElement video = document.query('video');
video.width = 100;
video.height = 100;
// Take the middle 20x20 pixels from the video and stretch them.
ctx.drawImageToRect(video, new Rect(50, 50, 100, 100),
sourceRect: new Rect(40, 40, 20, 20));
// Draw the top 100x20 pixels from the otherCanvas.
CanvasElement otherCanvas = document.query('canvas');
ctx.drawImageToRect(otherCanvas, new Rect(0, 0, 100, 20),
sourceRect: new Rect(0, 0, 100, 20));
See also:
CanvasImageSource
for more information on what data is retrieved
from
source
.
drawImage
(http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-drawimage)
from the WHATWG.
@
@
@
void drawSystemFocusRing(Element element)
void fill(String winding)
@
@
void fillRect(num x, num y, num width, num height)
void fillText(String text, num x, num y, num maxWidth)
@
@
@
Canvas2DContextAttributes getContextAttributes()
@
@
ImageData getImageData(num sx, num sy, num sw, num sh)
@
@
@
@
@
ImageData getImageDataHD(num sx, num sy, num sw, num sh)
@
@
List<num> getLineDash()
bool isPointInPath(num x, num y, String winding)
@
@
bool isPointInStroke(num x, num y)
@
@
void lineTo(num x, num y)
@
@
TextMetrics measureText(String text)
@
@
void moveTo(num x, num y)
void putImageData(ImageData imagedata, num dx, num dy, num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight)
void putImageDataHD(ImageData imagedata, num dx, num dy, num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight)
@
@
void quadraticCurveTo(num cpx, num cpy, num x, num y)
@
@
void rect(num x, num y, num width, num height)
@
@
void restore()
@
@
void rotate(num angle)
@
@
void save()
@
@
void scale(num sx, num sy)
void setFillColorHsl(int h, num s, num l, num a)
Sets the color used inside shapes. h
is in degrees, 0-360. s
, l
are in percent, 0-100. a
is 0-1.
void setFillColorRgb(int r, int g, int b, num a)
Sets the color used inside shapes. r
, g
, b
are 0-255, a
is 0-1.
@
@
void setLineDash(List<num> dash)
void setStrokeColorHsl(int h, num s, num l, num a)
Sets the color used for stroking shapes. h
is in degrees, 0-360. s
, l
are in percent, 0-100. a
is 0-1.
void setStrokeColorRgb(int r, int g, int b, num a)
Sets the color used for stroking shapes. r
, g
, b
are 0-255, a
is 0-1.
@
@
void setTransform(num m11, num m12, num m21, num m22, num dx, num dy)
@
@
void stroke()
@
@
void strokeRect(num x, num y, num width, num height)
void strokeText(String text, num x, num y, num maxWidth)
@
@
void transform(num m11, num m12, num m21, num m22, num dx, num dy)
@
@
void translate(num tx, num ty)
@
@
Class CharacterData extends Node implements ChildNode
- Fields
-
data: String
length: int
nextElementSibling: Element
previousElementSibling: Element
- Getters and Setters
-
data: String
data=(String value)
length: int
nextElementSibling: Element
previousElementSibling: Element
- Methods
-
appendData(String data): void
deleteData(int offset, int length): void
insertData(int offset, String data): void
replaceData(int offset, int length, String data): void
substringData(int offset, int length): String
Fields
String data
final int length
final Element nextElementSibling
final Element previousElementSibling
Getters and Setters
@
@
String get data
@
@
set data=(String value)
@
@
int get length
@
@
Element get nextElementSibling
@
@
Element get previousElementSibling
Methods
@
@
void appendData(String data)
@
@
void deleteData(int offset, int length)
@
@
void insertData(int offset, String data)
@
@
void replaceData(int offset, int length, String data)
@
@
String substringData(int offset, int length)
Abstract class CheckboxInputElement implements InputElementBase
- Fields
-
checked: bool
required: bool
- Constructors
-
CheckboxInputElement()
A boolean editor control.
Note that if indeterminate
is set then this control is in a third indeterminate state.
Fields
@
bool checked
@
bool required
Constructors
factory CheckboxInputElement()
@
@
@
Abstract class ChildNode extends NativeFieldWrapperClass1
- Fields
-
nextElementSibling: Element
previousElementSibling: Element
- Getters and Setters
-
nextElementSibling: Element
previousElementSibling: Element
- Constructors
-
ChildNode()
- Methods
-
remove(): void
Fields
final Element nextElementSibling
final Element previousElementSibling
Getters and Setters
@
@
@
Element get nextElementSibling
@
@
@
Element get previousElementSibling
Constructors
ChildNode()
Methods
@
@
@
void remove()
@
@
Class CloseEvent extends Event
- Fields
-
code: int
reason: String
wasClean: bool
- Getters and Setters
-
code: int
reason: String
wasClean: bool
Fields
final int code
final String reason
final bool wasClean
Getters and Setters
@
@
int get code
@
@
String get reason
@
@
bool get wasClean
- Constructors
-
Comment(String data)
Constructors
@
@
factory Comment(String data)
@
@
@
Class Composition extends NativeFieldWrapperClass1
- Fields
-
selectionEnd: int
selectionStart: int
text: String
- Getters and Setters
-
selectionEnd: int
selectionStart: int
text: String
- Constructors
-
Composition()
Fields
final int selectionEnd
final int selectionStart
final String text
Getters and Setters
@
@
@
int get selectionEnd
@
@
@
int get selectionStart
@
@
String get text
Constructors
Composition()
@
Class CompositionEvent extends UIEvent
- Fields
-
data: String
- Getters and Setters
-
data: String
- Constructors
-
CompositionEvent(String type, bool canBubble, bool cancelable, Window view, String data)
Fields
final String data
Getters and Setters
@
@
String get data
Constructors
factory CompositionEvent(String type, bool canBubble, bool cancelable, Window view, String data)
@
@
Class Console extends ConsoleBase
- Fields
-
memory: MemoryInfo
- Getters and Setters
-
memory: MemoryInfo
Fields
final MemoryInfo memory
Getters and Setters
@
@
@
MemoryInfo get memory
@
@
@
Class ConsoleBase extends NativeFieldWrapperClass1
- Constructors
-
ConsoleBase()
- Methods
-
assertCondition(bool condition, Object arg): void
clear(Object arg): void
count(Object arg): void
debug(Object arg): void
dir(Object arg): void
dirxml(Object arg): void
error(Object arg): void
group(Object arg): void
groupCollapsed(Object arg): void
groupEnd(): void
info(Object arg): void
log(Object arg): void
markTimeline(Object arg): void
profile(String title): void
profileEnd(String title): void
table(Object arg): void
time(String title): void
timeEnd(String title): void
timeStamp(Object arg): void
trace(Object arg): void
warn(Object arg): void
Constructors
ConsoleBase()
Methods
@
@
@
void assertCondition(bool condition, Object arg)
@
@
@
void clear(Object arg)
@
@
@
void count(Object arg)
@
@
@
void debug(Object arg)
@
@
@
void dir(Object arg)
@
@
@
void dirxml(Object arg)
@
@
@
void error(Object arg)
@
@
@
void group(Object arg)
@
@
@
void groupCollapsed(Object arg)
@
@
@
void groupEnd()
@
@
@
void info(Object arg)
@
@
@
void log(Object arg)
@
@
@
void markTimeline(Object arg)
@
@
@
void profile(String title)
@
@
@
void profileEnd(String title)
@
@
@
void table(Object arg)
@
@
@
void time(String title)
@
@
@
void timeEnd(String title)
@
@
@
void timeStamp(Object arg)
@
@
@
void trace(Object arg)
@
@
@
void warn(Object arg)
@
@
@
@
Class ContentElement extends HtmlElement
- Static Fields
-
supported: bool
- Fields
-
resetStyleInheritance: bool
select: String
- Getters and Setters
-
resetStyleInheritance: bool
resetStyleInheritance=(bool value)
select: String
select=(String value)
supported: bool
- Constructors
-
ContentElement()
- Methods
-
getDistributedNodes(): List<Node>
Static Fields
static final bool supported
Fields
bool resetStyleInheritance
String select
Getters and Setters
@
@
bool get resetStyleInheritance
@
@
set resetStyleInheritance=(bool value)
@
@
String get select
@
@
set select=(String value)
static bool get supported
Checks if this type is supported on the current platform.
Constructors
@
@
factory ContentElement()
Methods
@
@
List<Node> getDistributedNodes()
@
@
Class Coordinates extends NativeFieldWrapperClass1
- Fields
-
accuracy: double
altitude: double
altitudeAccuracy: double
heading: double
latitude: double
longitude: double
speed: double
- Getters and Setters
-
accuracy: double
altitude: double
altitudeAccuracy: double
heading: double
latitude: double
longitude: double
speed: double
- Constructors
-
Coordinates()
Fields
final double accuracy
final double altitude
final double altitudeAccuracy
final double heading
final double latitude
final double longitude
final double speed
Getters and Setters
@
@
double get accuracy
@
@
double get altitude
@
@
double get altitudeAccuracy
@
@
double get heading
@
@
double get latitude
@
@
double get longitude
@
@
double get speed
Constructors
Coordinates()
@
@
@
@
@
Class Crypto extends NativeFieldWrapperClass1
- Static Fields
-
supported: bool
- Fields
-
subtle: _SubtleCrypto
- Getters and Setters
-
subtle: _SubtleCrypto
supported: bool
- Constructors
-
Crypto()
- Methods
-
getRandomValues(TypedData array): TypedData
Static Fields
static final bool supported
Fields
final _SubtleCrypto subtle
Getters and Setters
@
@
@
_SubtleCrypto get subtle
static bool get supported
Checks if this type is supported on the current platform.
Constructors
Crypto()
Methods
@
@
TypedData getRandomValues(TypedData array)
@
@
@
Class CryptoKey extends NativeFieldWrapperClass1
- Fields
-
algorithm: Algorithm
extractable: bool
type: String
usages: List
- Getters and Setters
-
algorithm: Algorithm
extractable: bool
type: String
usages: List<String>
- Constructors
-
CryptoKey()
Fields
final Algorithm algorithm
final bool extractable
final String type
final List usages
Getters and Setters
@
@
@
Algorithm get algorithm
@
@
@
bool get extractable
@
@
@
String get type
@
@
@
List<String> get usages
Constructors
CryptoKey()
@
@
@
Class Css extends NativeFieldWrapperClass1
- Constructors
-
Css()
- Methods
-
supports(String property, String value): bool
supportsCondition(String conditionText): bool
Constructors
Css()
Methods
@
@
bool supports(String property, String value)
@
@
bool supportsCondition(String conditionText)
@
@
@
Class CssCharsetRule extends CssRule
- Fields
-
encoding: String
- Getters and Setters
-
encoding: String
encoding=(String value)
Fields
String encoding
Getters and Setters
@
@
String get encoding
@
@
set encoding=(String value)
Abstract class CssClassSet implements Set<String>
- Fields
-
frozen: bool
- Getters and Setters
-
frozen: bool
- Constructors
-
CssClassSet()
- Methods
-
add(String value): void
addAll(Iterable<String> iterable): void
contains(String value): bool
remove(Object value): bool
removeAll(Iterable<String> iterable): void
toggle(String value, bool shouldAdd): bool
toggleAll(Iterable<String> iterable, bool shouldAdd): void
A Set that stores the CSS class names for an element.
Fields
final bool frozen
Getters and Setters
bool get frozen
Returns true
if classes cannot be added or removed from this CssClassSet
.
Constructors
CssClassSet()
Methods
void add(String value)
Add the class value
to element.
This is the Dart equivalent of jQuery's addClass
(http://api.jquery.com/addClass/).
void addAll(Iterable<String> iterable)
Add all classes specified in iterable
to element.
This is the Dart equivalent of jQuery's addClass
(http://api.jquery.com/addClass/).
bool contains(String value)
Determine if this element contains the class value
.
This is the Dart equivalent of jQuery's hasClass
(http://api.jquery.com/hasClass/).
bool remove(Object value)
Remove the class value
from element, and return true on successful removal.
This is the Dart equivalent of jQuery's removeClass
(http://api.jquery.com/removeClass/).
void removeAll(Iterable<String> iterable)
Remove all classes specified in iterable
from element.
This is the Dart equivalent of jQuery's removeClass
(http://api.jquery.com/removeClass/).
bool toggle(String value, bool shouldAdd)
Adds the class value
to the element if it is not on it, removes it if it is.
If shouldAdd
is true, then we always add that value
to the element. If shouldAdd
is false then we always remove value
from the element.
void toggleAll(Iterable<String> iterable, bool shouldAdd)
Toggles all classes specified in iterable
on element.
Iterate through iterable
's items, and add it if it is not on it, or remove it if it is. This is the Dart equivalent of jQuery's toggleClass
(http://api.jquery.com/toggleClass/). If shouldAdd
is true, then we always add all the classes in iterable
element. If shouldAdd
is false then we always remove all the classes in iterable
from the element.
@
@
@
@
@
Class CssFilterRule extends CssRule
- Fields
-
style: CssStyleDeclaration
- Getters and Setters
-
style: CssStyleDeclaration
Fields
final CssStyleDeclaration style
Getters and Setters
@
@
CssStyleDeclaration get style
@
@
@
@
@
@deprecated
Class CssFilterValue extends _CssValueList
- Static Fields
-
CSS_FILTER_BLUR: int
CSS_FILTER_BRIGHTNESS: int
CSS_FILTER_CONTRAST: int
CSS_FILTER_CUSTOM: int
CSS_FILTER_DROP_SHADOW: int
CSS_FILTER_GRAYSCALE: int
CSS_FILTER_HUE_ROTATE: int
CSS_FILTER_INVERT: int
CSS_FILTER_OPACITY: int
CSS_FILTER_REFERENCE: int
CSS_FILTER_SATURATE: int
CSS_FILTER_SEPIA: int
- Fields
-
operationType: int
- Getters and Setters
-
operationType: int
Static Fields
@
@
static const int CSS_FILTER_BLUR = 10
@
@
static const int CSS_FILTER_BRIGHTNESS = 8
@
@
static const int CSS_FILTER_CONTRAST = 9
@
@
static const int CSS_FILTER_CUSTOM = 12
@
@
static const int CSS_FILTER_DROP_SHADOW = 11
@
@
static const int CSS_FILTER_GRAYSCALE = 2
@
@
static const int CSS_FILTER_HUE_ROTATE = 5
@
@
static const int CSS_FILTER_INVERT = 6
@
@
static const int CSS_FILTER_OPACITY = 7
@
@
static const int CSS_FILTER_REFERENCE = 1
@
@
static const int CSS_FILTER_SATURATE = 4
@
@
static const int CSS_FILTER_SEPIA = 3
Fields
final int operationType
Getters and Setters
@
@
int get operationType
@
@
@
Class CssFontFaceLoadEvent extends Event
- Fields
-
error: DomError
fontface: CssFontFaceRule
- Getters and Setters
-
error: DomError
fontface: CssFontFaceRule
Fields
final DomError error
final CssFontFaceRule fontface
Getters and Setters
@
@
DomError get error
@
@
CssFontFaceRule get fontface
@
@
Class CssFontFaceRule extends CssRule
- Fields
-
style: CssStyleDeclaration
- Getters and Setters
-
style: CssStyleDeclaration
Fields
final CssStyleDeclaration style
Getters and Setters
@
@
CssStyleDeclaration get style
@
@
@
@
Class CssHostRule extends CssRule
- Fields
-
cssRules: List
- Getters and Setters
-
cssRules: List<CssRule>
- Methods
-
deleteRule(int index): void
insertRule(String rule, int index): int
Fields
final List cssRules
Getters and Setters
@
@
List<CssRule> get cssRules
Methods
@
@
void deleteRule(int index)
@
@
int insertRule(String rule, int index)
@
@
Class CssImportRule extends CssRule
- Fields
-
href: String
media: MediaList
styleSheet: CssStyleSheet
- Getters and Setters
-
href: String
media: MediaList
styleSheet: CssStyleSheet
Fields
final String href
final MediaList media
final CssStyleSheet styleSheet
Getters and Setters
@
@
String get href
@
@
MediaList get media
@
@
CssStyleSheet get styleSheet
@
@
@
Class CssKeyframeRule extends CssRule
- Fields
-
keyText: String
style: CssStyleDeclaration
- Getters and Setters
-
keyText: String
keyText=(String value)
style: CssStyleDeclaration
Fields
String keyText
final CssStyleDeclaration style
Getters and Setters
@
@
@
String get keyText
@
@
@
set keyText=(String value)
@
@
@
CssStyleDeclaration get style
@
@
@
Class CssKeyframesRule extends CssRule
- Fields
-
cssRules: List
name: String
- Getters and Setters
-
cssRules: List<CssRule>
name: String
name=(String value)
- Methods
-
appendRule(String rule): void
deleteRule(String key): void
findRule(String key): CssKeyframeRule
Fields
final List cssRules
String name
Getters and Setters
@
@
@
List<CssRule> get cssRules
@
@
@
String get name
@
@
@
set name=(String value)
Methods
@
@
@
void appendRule(String rule)
@
@
@
void deleteRule(String key)
@
@
@
CssKeyframeRule findRule(String key)
@
@
@
@
@
@
@
@
@deprecated
Class CssMatrix extends NativeFieldWrapperClass1
- Fields
-
a: num
b: num
c: num
d: num
e: num
f: num
m11: num
m12: num
m13: num
m14: num
m21: num
m22: num
m23: num
m24: num
m31: num
m32: num
m33: num
m34: num
m41: num
m42: num
m43: num
m44: num
- Getters and Setters
-
a: num
a=(num value)
b: num
b=(num value)
c: num
c=(num value)
d: num
d=(num value)
e: num
e=(num value)
f: num
f=(num value)
m11: num
m11=(num value)
m12: num
m12=(num value)
m13: num
m13=(num value)
m14: num
m14=(num value)
m21: num
m21=(num value)
m22: num
m22=(num value)
m23: num
m23=(num value)
m24: num
m24=(num value)
m31: num
m31=(num value)
m32: num
m32=(num value)
m33: num
m33=(num value)
m34: num
m34=(num value)
m41: num
m41=(num value)
m42: num
m42=(num value)
m43: num
m43=(num value)
m44: num
m44=(num value)
- Constructors
-
CssMatrix(String cssValue)
- Methods
-
inverse(): CssMatrix
multiply(CssMatrix secondMatrix): CssMatrix
rotate(num rotX, num rotY, num rotZ): CssMatrix
rotateAxisAngle(num x, num y, num z, num angle): CssMatrix
scale(num scaleX, num scaleY, num scaleZ): CssMatrix
setMatrixValue(String string): void
skewX(num angle): CssMatrix
skewY(num angle): CssMatrix
toString(): String
translate(num x, num y, num z): CssMatrix
Fields
num a
num b
num c
num d
num e
num f
num m11
num m12
num m13
num m14
num m21
num m22
num m23
num m24
num m31
num m32
num m33
num m34
num m41
num m42
num m43
num m44
Getters and Setters
@
@
num get a
@
@
set a=(num value)
@
@
num get b
@
@
set b=(num value)
@
@
num get c
@
@
set c=(num value)
@
@
num get d
@
@
set d=(num value)
@
@
num get e
@
@
set e=(num value)
@
@
num get f
@
@
set f=(num value)
@
@
num get m11
@
@
set m11=(num value)
@
@
num get m12
@
@
set m12=(num value)
@
@
num get m13
@
@
set m13=(num value)
@
@
num get m14
@
@
set m14=(num value)
@
@
num get m21
@
@
set m21=(num value)
@
@
num get m22
@
@
set m22=(num value)
@
@
num get m23
@
@
set m23=(num value)
@
@
num get m24
@
@
set m24=(num value)
@
@
num get m31
@
@
set m31=(num value)
@
@
num get m32
@
@
set m32=(num value)
@
@
num get m33
@
@
set m33=(num value)
@
@
num get m34
@
@
set m34=(num value)
@
@
num get m41
@
@
set m41=(num value)
@
@
num get m42
@
@
set m42=(num value)
@
@
num get m43
@
@
set m43=(num value)
@
@
num get m44
@
@
set m44=(num value)
Constructors
@
@
factory CssMatrix(String cssValue)
Methods
@
@
CssMatrix inverse()
@
@
CssMatrix multiply(CssMatrix secondMatrix)
@
@
CssMatrix rotate(num rotX, num rotY, num rotZ)
@
@
CssMatrix rotateAxisAngle(num x, num y, num z, num angle)
@
@
CssMatrix scale(num scaleX, num scaleY, num scaleZ)
@
@
void setMatrixValue(String string)
@
@
CssMatrix skewX(num angle)
@
@
CssMatrix skewY(num angle)
@
@
String toString()
Returns a string representation of this object.
@
@
CssMatrix translate(num x, num y, num z)
@
@
Class CssMediaRule extends CssRule
- Fields
-
cssRules: List
media: MediaList
- Getters and Setters
-
cssRules: List<CssRule>
media: MediaList
- Methods
-
deleteRule(int index): void
insertRule(String rule, int index): int
Fields
final List cssRules
final MediaList media
Getters and Setters
@
@
List<CssRule> get cssRules
@
@
MediaList get media
Methods
@
@
void deleteRule(int index)
@
@
int insertRule(String rule, int index)
@
@
@
@
@
@deprecated
Class CssMixFunctionValue extends _CssValueList
@
@
Class CssPageRule extends CssRule
- Fields
-
selectorText: String
style: CssStyleDeclaration
- Getters and Setters
-
selectorText: String
selectorText=(String value)
style: CssStyleDeclaration
Fields
String selectorText
final CssStyleDeclaration style
Getters and Setters
@
@
String get selectorText
@
@
set selectorText=(String value)
@
@
CssStyleDeclaration get style
Abstract class CssRect extends RectBase implements Rect
- Fields
-
height: num
left: num
top: num
width: num
- Getters and Setters
-
height: num
height=(dynamic newHeight)
left: num
top: num
width: num
width=(dynamic newWidth)
- Constructors
-
CssRect(Element _element)
A class for representing CSS dimensions.
In contrast to the more general purpose Rect
class, this class's values are mutable, so one can change the height of an element programmatically.
_Important_ _note_: use of these methods will perform CSS calculations that can trigger a browser reflow. Therefore, use of these properties _during_ an animation frame is discouraged. See also: Browser Reflow
(https://developers.google.com/speed/articles/reflow)
Fields
num height
final num left
final num top
num width
Getters and Setters
num get height
The height of this rectangle.
This is equivalent to the height
function in jQuery and the calculated height
CSS value, converted to a dimensionless num in pixels. Unlike getBoundingClientRect
, height
will return the same numerical width if the element is hidden or not.
set height=(dynamic newHeight)
Set the height to newHeight
.
newHeight can be either a num
representing the height in pixels or a Dimension
object. Values of newHeight that are less than zero are converted to effectively setting the height to 0. This is equivalent to the height
function in jQuery and the calculated height
CSS value, converted to a num in pixels.
Note that only the content height can actually be set via this method.
num get left
num get top
num get width
The width of this rectangle.
This is equivalent to the width
function in jQuery and the calculated width
CSS value, converted to a dimensionless num in pixels. Unlike getBoundingClientRect
, width
will return the same numerical width if the element is hidden or not.
set width=(dynamic newWidth)
Set the current computed width in pixels of this element.
newWidth can be either a num
representing the width in pixels or a Dimension
object. This is equivalent to the width
function in jQuery and the calculated width
CSS value, converted to a dimensionless num in pixels.
Note that only the content width can be set via this method.
Constructors
CssRect(Element _element)
@
@
@
@
@
Class CssRegionRule extends CssRule
- Fields
-
cssRules: List
- Getters and Setters
-
cssRules: List<CssRule>
Fields
final List cssRules
Getters and Setters
@
@
List<CssRule> get cssRules
@
@
Class CssRule extends NativeFieldWrapperClass1
- Static Fields
-
CHARSET_RULE: int
FONT_FACE_RULE: int
HOST_RULE: int
IMPORT_RULE: int
KEYFRAMES_RULE: int
KEYFRAME_RULE: int
MEDIA_RULE: int
PAGE_RULE: int
STYLE_RULE: int
SUPPORTS_RULE: int
UNKNOWN_RULE: int
VIEWPORT_RULE: int
WEBKIT_FILTER_RULE: int
WEBKIT_KEYFRAMES_RULE: int
WEBKIT_KEYFRAME_RULE: int
WEBKIT_REGION_RULE: int
- Fields
-
cssText: String
parentRule: CssRule
parentStyleSheet: CssStyleSheet
type: int
- Getters and Setters
-
cssText: String
cssText=(String value)
parentRule: CssRule
parentStyleSheet: CssStyleSheet
type: int
- Constructors
-
CssRule()
Static Fields
@
@
static const int CHARSET_RULE = 2
@
@
static const int FONT_FACE_RULE = 5
@
@
@
static const int HOST_RULE = 1001
@
@
static const int IMPORT_RULE = 3
@
@
@
static const int KEYFRAMES_RULE = 7
@
@
@
static const int KEYFRAME_RULE = 8
@
@
static const int MEDIA_RULE = 4
@
@
static const int PAGE_RULE = 6
@
@
static const int STYLE_RULE = 1
@
@
static const int SUPPORTS_RULE = 12
@
@
@deprecated
static const int UNKNOWN_RULE = 0
@
@
@
static const int VIEWPORT_RULE = 15
@
@
@
static const int WEBKIT_FILTER_RULE = 17
@
@
@
static const int WEBKIT_KEYFRAMES_RULE = 7
@
@
@
static const int WEBKIT_KEYFRAME_RULE = 8
@
@
@
static const int WEBKIT_REGION_RULE = 16
Fields
String cssText
final CssRule parentRule
final CssStyleSheet parentStyleSheet
final int type
Getters and Setters
@
@
String get cssText
@
@
set cssText=(String value)
@
@
CssRule get parentRule
@
@
CssStyleSheet get parentStyleSheet
@
@
int get type
Constructors
CssRule()
@
Class CssStyleDeclaration extends NativeFieldWrapperClass1 with CssStyleDeclarationBase
- Static Fields
-
supportsTransitions: bool
- Fields
-
cssText: String
length: int
parentRule: CssRule
- Getters and Setters
-
cssText: String
cssText=(String value)
length: int
parentRule: CssRule
supportsTransitions: bool
- Constructors
-
CssStyleDeclaration()
CssStyleDeclaration.css(String css)
- Methods
-
getPropertyPriority(String propertyName): String
getPropertyValue(String propertyName): String
item(int index): String
removeProperty(String propertyName): String
setProperty(String propertyName, String value, String priority): void
Static Fields
static final bool supportsTransitions
Fields
String cssText
final int length
final CssRule parentRule
Getters and Setters
@
@
String get cssText
@
@
set cssText=(String value)
@
@
int get length
@
@
CssRule get parentRule
static bool get supportsTransitions
Checks to see if CSS Transitions are supported.
Constructors
factory CssStyleDeclaration()
factory CssStyleDeclaration.css(String css)
Methods
@
@
String getPropertyPriority(String propertyName)
String getPropertyValue(String propertyName)
@
@
String item(int index)
@
@
String removeProperty(String propertyName)
@
void setProperty(String propertyName, String value, String priority)
Abstract class CssStyleDeclarationBase
- Fields
-
alignContent: String
alignItems: String
alignSelf: String
animation: String
animationDelay: String
animationDirection: String
animationDuration: String
animationFillMode: String
animationIterationCount: String
animationName: String
animationPlayState: String
animationTimingFunction: String
appRegion: String
appearance: String
aspectRatio: String
backfaceVisibility: String
background: String
backgroundAttachment: String
backgroundClip: String
backgroundColor: String
backgroundComposite: String
backgroundImage: String
backgroundOrigin: String
backgroundPosition: String
backgroundPositionX: String
backgroundPositionY: String
backgroundRepeat: String
backgroundRepeatX: String
backgroundRepeatY: String
backgroundSize: String
blendMode: String
border: String
borderAfter: String
borderAfterColor: String
borderAfterStyle: String
borderAfterWidth: String
borderBefore: String
borderBeforeColor: String
borderBeforeStyle: String
borderBeforeWidth: String
borderBottom: String
borderBottomColor: String
borderBottomLeftRadius: String
borderBottomRightRadius: String
borderBottomStyle: String
borderBottomWidth: String
borderCollapse: String
borderColor: String
borderEnd: String
borderEndColor: String
borderEndStyle: String
borderEndWidth: String
borderFit: String
borderHorizontalSpacing: String
borderImage: String
borderImageOutset: String
borderImageRepeat: String
borderImageSlice: String
borderImageSource: String
borderImageWidth: String
borderLeft: String
borderLeftColor: String
borderLeftStyle: String
borderLeftWidth: String
borderRadius: String
borderRight: String
borderRightColor: String
borderRightStyle: String
borderRightWidth: String
borderSpacing: String
borderStart: String
borderStartColor: String
borderStartStyle: String
borderStartWidth: String
borderStyle: String
borderTop: String
borderTopColor: String
borderTopLeftRadius: String
borderTopRightRadius: String
borderTopStyle: String
borderTopWidth: String
borderVerticalSpacing: String
borderWidth: String
bottom: String
boxAlign: String
boxDecorationBreak: String
boxDirection: String
boxFlex: String
boxFlexGroup: String
boxLines: String
boxOrdinalGroup: String
boxOrient: String
boxPack: String
boxReflect: String
boxShadow: String
boxSizing: String
captionSide: String
clear: String
clip: String
clipPath: String
color: String
colorCorrection: String
columnAxis: String
columnBreakAfter: String
columnBreakBefore: String
columnBreakInside: String
columnCount: String
columnGap: String
columnProgression: String
columnRule: String
columnRuleColor: String
columnRuleStyle: String
columnRuleWidth: String
columnSpan: String
columnWidth: String
columns: String
content: String
counterIncrement: String
counterReset: String
cursor: String
dashboardRegion: String
direction: String
display: String
emptyCells: String
filter: String
flex: String
flexBasis: String
flexDirection: String
flexFlow: String
flexGrow: String
flexShrink: String
flexWrap: String
float: String
flowFrom: String
flowInto: String
font: String
fontFamily: String
fontFeatureSettings: String
fontKerning: String
fontSize: String
fontSizeDelta: String
fontSmoothing: String
fontStretch: String
fontStyle: String
fontVariant: String
fontVariantLigatures: String
fontWeight: String
gridColumn: String
gridColumns: String
gridRow: String
gridRows: String
height: String
highlight: String
hyphenateCharacter: String
hyphenateLimitAfter: String
hyphenateLimitBefore: String
hyphenateLimitLines: String
hyphens: String
imageOrientation: String
imageRendering: String
imageResolution: String
justifyContent: String
left: String
letterSpacing: String
lineAlign: String
lineBoxContain: String
lineBreak: String
lineClamp: String
lineGrid: String
lineHeight: String
lineSnap: String
listStyle: String
listStyleImage: String
listStylePosition: String
listStyleType: String
locale: String
logicalHeight: String
logicalWidth: String
margin: String
marginAfter: String
marginAfterCollapse: String
marginBefore: String
marginBeforeCollapse: String
marginBottom: String
marginBottomCollapse: String
marginCollapse: String
marginEnd: String
marginLeft: String
marginRight: String
marginStart: String
marginTop: String
marginTopCollapse: String
marquee: String
marqueeDirection: String
marqueeIncrement: String
marqueeRepetition: String
marqueeSpeed: String
marqueeStyle: String
mask: String
maskAttachment: String
maskBoxImage: String
maskBoxImageOutset: String
maskBoxImageRepeat: String
maskBoxImageSlice: String
maskBoxImageSource: String
maskBoxImageWidth: String
maskClip: String
maskComposite: String
maskImage: String
maskOrigin: String
maskPosition: String
maskPositionX: String
maskPositionY: String
maskRepeat: String
maskRepeatX: String
maskRepeatY: String
maskSize: String
maxHeight: String
maxLogicalHeight: String
maxLogicalWidth: String
maxWidth: String
maxZoom: String
minHeight: String
minLogicalHeight: String
minLogicalWidth: String
minWidth: String
minZoom: String
nbspMode: String
opacity: String
order: String
orientation: String
orphans: String
outline: String
outlineColor: String
outlineOffset: String
outlineStyle: String
outlineWidth: String
overflow: String
overflowScrolling: String
overflowWrap: String
overflowX: String
overflowY: String
padding: String
paddingAfter: String
paddingBefore: String
paddingBottom: String
paddingEnd: String
paddingLeft: String
paddingRight: String
paddingStart: String
paddingTop: String
page: String
pageBreakAfter: String
pageBreakBefore: String
pageBreakInside: String
perspective: String
perspectiveOrigin: String
perspectiveOriginX: String
perspectiveOriginY: String
pointerEvents: String
position: String
printColorAdjust: String
quotes: String
regionBreakAfter: String
regionBreakBefore: String
regionBreakInside: String
regionOverflow: String
resize: String
right: String
rtlOrdering: String
shapeInside: String
shapeMargin: String
shapeOutside: String
shapePadding: String
size: String
speak: String
src: String
tabSize: String
tableLayout: String
tapHighlightColor: String
textAlign: String
textAlignLast: String
textCombine: String
textDecoration: String
textDecorationLine: String
textDecorationStyle: String
textDecorationsInEffect: String
textEmphasis: String
textEmphasisColor: String
textEmphasisPosition: String
textEmphasisStyle: String
textFillColor: String
textIndent: String
textLineThrough: String
textLineThroughColor: String
textLineThroughMode: String
textLineThroughStyle: String
textLineThroughWidth: String
textOrientation: String
textOverflow: String
textOverline: String
textOverlineColor: String
textOverlineMode: String
textOverlineStyle: String
textOverlineWidth: String
textRendering: String
textSecurity: String
textShadow: String
textSizeAdjust: String
textStroke: String
textStrokeColor: String
textStrokeWidth: String
textTransform: String
textUnderline: String
textUnderlineColor: String
textUnderlineMode: String
textUnderlineStyle: String
textUnderlineWidth: String
top: String
transform: String
transformOrigin: String
transformOriginX: String
transformOriginY: String
transformOriginZ: String
transformStyle: String
transition: String
transitionDelay: String
transitionDuration: String
transitionProperty: String
transitionTimingFunction: String
unicodeBidi: String
unicodeRange: String
userDrag: String
userModify: String
userSelect: String
userZoom: String
verticalAlign: String
visibility: String
whiteSpace: String
widows: String
width: String
wordBreak: String
wordSpacing: String
wordWrap: String
wrap: String
wrapFlow: String
wrapThrough: String
writingMode: String
zIndex: String
zoom: String
- Getters and Setters
-
alignContent: String
alignContent=(String value)
alignItems: String
alignItems=(String value)
alignSelf: String
alignSelf=(String value)
animation: String
animation=(String value)
animationDelay: String
animationDelay=(String value)
animationDirection: String
animationDirection=(String value)
animationDuration: String
animationDuration=(String value)
animationFillMode: String
animationFillMode=(String value)
animationIterationCount: String
animationIterationCount=(String value)
animationName: String
animationName=(String value)
animationPlayState: String
animationPlayState=(String value)
animationTimingFunction: String
animationTimingFunction=(String value)
appRegion: String
appRegion=(String value)
appearance: String
appearance=(String value)
aspectRatio: String
aspectRatio=(String value)
backfaceVisibility: String
backfaceVisibility=(String value)
background: String
background=(String value)
backgroundAttachment: String
backgroundAttachment=(String value)
backgroundClip: String
backgroundClip=(String value)
backgroundColor: String
backgroundColor=(String value)
backgroundComposite: String
backgroundComposite=(String value)
backgroundImage: String
backgroundImage=(String value)
backgroundOrigin: String
backgroundOrigin=(String value)
backgroundPosition: String
backgroundPosition=(String value)
backgroundPositionX: String
backgroundPositionX=(String value)
backgroundPositionY: String
backgroundPositionY=(String value)
backgroundRepeat: String
backgroundRepeat=(String value)
backgroundRepeatX: String
backgroundRepeatX=(String value)
backgroundRepeatY: String
backgroundRepeatY=(String value)
backgroundSize: String
backgroundSize=(String value)
blendMode: String
blendMode=(String value)
border: String
border=(String value)
borderAfter: String
borderAfter=(String value)
borderAfterColor: String
borderAfterColor=(String value)
borderAfterStyle: String
borderAfterStyle=(String value)
borderAfterWidth: String
borderAfterWidth=(String value)
borderBefore: String
borderBefore=(String value)
borderBeforeColor: String
borderBeforeColor=(String value)
borderBeforeStyle: String
borderBeforeStyle=(String value)
borderBeforeWidth: String
borderBeforeWidth=(String value)
borderBottom: String
borderBottom=(String value)
borderBottomColor: String
borderBottomColor=(String value)
borderBottomLeftRadius: String
borderBottomLeftRadius=(String value)
borderBottomRightRadius: String
borderBottomRightRadius=(String value)
borderBottomStyle: String
borderBottomStyle=(String value)
borderBottomWidth: String
borderBottomWidth=(String value)
borderCollapse: String
borderCollapse=(String value)
borderColor: String
borderColor=(String value)
borderEnd: String
borderEnd=(String value)
borderEndColor: String
borderEndColor=(String value)
borderEndStyle: String
borderEndStyle=(String value)
borderEndWidth: String
borderEndWidth=(String value)
borderFit: String
borderFit=(String value)
borderHorizontalSpacing: String
borderHorizontalSpacing=(String value)
borderImage: String
borderImage=(String value)
borderImageOutset: String
borderImageOutset=(String value)
borderImageRepeat: String
borderImageRepeat=(String value)
borderImageSlice: String
borderImageSlice=(String value)
borderImageSource: String
borderImageSource=(String value)
borderImageWidth: String
borderImageWidth=(String value)
borderLeft: String
borderLeft=(String value)
borderLeftColor: String
borderLeftColor=(String value)
borderLeftStyle: String
borderLeftStyle=(String value)
borderLeftWidth: String
borderLeftWidth=(String value)
borderRadius: String
borderRadius=(String value)
borderRight: String
borderRight=(String value)
borderRightColor: String
borderRightColor=(String value)
borderRightStyle: String
borderRightStyle=(String value)
borderRightWidth: String
borderRightWidth=(String value)
borderSpacing: String
borderSpacing=(String value)
borderStart: String
borderStart=(String value)
borderStartColor: String
borderStartColor=(String value)
borderStartStyle: String
borderStartStyle=(String value)
borderStartWidth: String
borderStartWidth=(String value)
borderStyle: String
borderStyle=(String value)
borderTop: String
borderTop=(String value)
borderTopColor: String
borderTopColor=(String value)
borderTopLeftRadius: String
borderTopLeftRadius=(String value)
borderTopRightRadius: String
borderTopRightRadius=(String value)
borderTopStyle: String
borderTopStyle=(String value)
borderTopWidth: String
borderTopWidth=(String value)
borderVerticalSpacing: String
borderVerticalSpacing=(String value)
borderWidth: String
borderWidth=(String value)
bottom: String
bottom=(String value)
boxAlign: String
boxAlign=(String value)
boxDecorationBreak: String
boxDecorationBreak=(String value)
boxDirection: String
boxDirection=(String value)
boxFlex: String
boxFlex=(String value)
boxFlexGroup: String
boxFlexGroup=(String value)
boxLines: String
boxLines=(String value)
boxOrdinalGroup: String
boxOrdinalGroup=(String value)
boxOrient: String
boxOrient=(String value)
boxPack: String
boxPack=(String value)
boxReflect: String
boxReflect=(String value)
boxShadow: String
boxShadow=(String value)
boxSizing: String
boxSizing=(String value)
captionSide: String
captionSide=(String value)
clear: String
clear=(String value)
clip: String
clip=(String value)
clipPath: String
clipPath=(String value)
color: String
color=(String value)
colorCorrection: String
colorCorrection=(String value)
columnAxis: String
columnAxis=(String value)
columnBreakAfter: String
columnBreakAfter=(String value)
columnBreakBefore: String
columnBreakBefore=(String value)
columnBreakInside: String
columnBreakInside=(String value)
columnCount: String
columnCount=(String value)
columnGap: String
columnGap=(String value)
columnProgression: String
columnProgression=(String value)
columnRule: String
columnRule=(String value)
columnRuleColor: String
columnRuleColor=(String value)
columnRuleStyle: String
columnRuleStyle=(String value)
columnRuleWidth: String
columnRuleWidth=(String value)
columnSpan: String
columnSpan=(String value)
columnWidth: String
columnWidth=(String value)
columns: String
columns=(String value)
content: String
content=(String value)
counterIncrement: String
counterIncrement=(String value)
counterReset: String
counterReset=(String value)
cursor: String
cursor=(String value)
dashboardRegion: String
dashboardRegion=(String value)
direction: String
direction=(String value)
display: String
display=(String value)
emptyCells: String
emptyCells=(String value)
filter: String
filter=(String value)
flex: String
flex=(String value)
flexBasis: String
flexBasis=(String value)
flexDirection: String
flexDirection=(String value)
flexFlow: String
flexFlow=(String value)
flexGrow: String
flexGrow=(String value)
flexShrink: String
flexShrink=(String value)
flexWrap: String
flexWrap=(String value)
float: String
float=(String value)
flowFrom: String
flowFrom=(String value)
flowInto: String
flowInto=(String value)
font: String
font=(String value)
fontFamily: String
fontFamily=(String value)
fontFeatureSettings: String
fontFeatureSettings=(String value)
fontKerning: String
fontKerning=(String value)
fontSize: String
fontSize=(String value)
fontSizeDelta: String
fontSizeDelta=(String value)
fontSmoothing: String
fontSmoothing=(String value)
fontStretch: String
fontStretch=(String value)
fontStyle: String
fontStyle=(String value)
fontVariant: String
fontVariant=(String value)
fontVariantLigatures: String
fontVariantLigatures=(String value)
fontWeight: String
fontWeight=(String value)
gridColumn: String
gridColumn=(String value)
gridColumns: String
gridColumns=(String value)
gridRow: String
gridRow=(String value)
gridRows: String
gridRows=(String value)
height: String
height=(String value)
highlight: String
highlight=(String value)
hyphenateCharacter: String
hyphenateCharacter=(String value)
hyphenateLimitAfter: String
hyphenateLimitAfter=(String value)
hyphenateLimitBefore: String
hyphenateLimitBefore=(String value)
hyphenateLimitLines: String
hyphenateLimitLines=(String value)
hyphens: String
hyphens=(String value)
imageOrientation: String
imageOrientation=(String value)
imageRendering: String
imageRendering=(String value)
imageResolution: String
imageResolution=(String value)
justifyContent: String
justifyContent=(String value)
left: String
left=(String value)
letterSpacing: String
letterSpacing=(String value)
lineAlign: String
lineAlign=(String value)
lineBoxContain: String
lineBoxContain=(String value)
lineBreak: String
lineBreak=(String value)
lineClamp: String
lineClamp=(String value)
lineGrid: String
lineGrid=(String value)
lineHeight: String
lineHeight=(String value)
lineSnap: String
lineSnap=(String value)
listStyle: String
listStyle=(String value)
listStyleImage: String
listStyleImage=(String value)
listStylePosition: String
listStylePosition=(String value)
listStyleType: String
listStyleType=(String value)
locale: String
locale=(String value)
logicalHeight: String
logicalHeight=(String value)
logicalWidth: String
logicalWidth=(String value)
margin: String
margin=(String value)
marginAfter: String
marginAfter=(String value)
marginAfterCollapse: String
marginAfterCollapse=(String value)
marginBefore: String
marginBefore=(String value)
marginBeforeCollapse: String
marginBeforeCollapse=(String value)
marginBottom: String
marginBottom=(String value)
marginBottomCollapse: String
marginBottomCollapse=(String value)
marginCollapse: String
marginCollapse=(String value)
marginEnd: String
marginEnd=(String value)
marginLeft: String
marginLeft=(String value)
marginRight: String
marginRight=(String value)
marginStart: String
marginStart=(String value)
marginTop: String
marginTop=(String value)
marginTopCollapse: String
marginTopCollapse=(String value)
marquee: String
marquee=(String value)
marqueeDirection: String
marqueeDirection=(String value)
marqueeIncrement: String
marqueeIncrement=(String value)
marqueeRepetition: String
marqueeRepetition=(String value)
marqueeSpeed: String
marqueeSpeed=(String value)
marqueeStyle: String
marqueeStyle=(String value)
mask: String
mask=(String value)
maskAttachment: String
maskAttachment=(String value)
maskBoxImage: String
maskBoxImage=(String value)
maskBoxImageOutset: String
maskBoxImageOutset=(String value)
maskBoxImageRepeat: String
maskBoxImageRepeat=(String value)
maskBoxImageSlice: String
maskBoxImageSlice=(String value)
maskBoxImageSource: String
maskBoxImageSource=(String value)
maskBoxImageWidth: String
maskBoxImageWidth=(String value)
maskClip: String
maskClip=(String value)
maskComposite: String
maskComposite=(String value)
maskImage: String
maskImage=(String value)
maskOrigin: String
maskOrigin=(String value)
maskPosition: String
maskPosition=(String value)
maskPositionX: String
maskPositionX=(String value)
maskPositionY: String
maskPositionY=(String value)
maskRepeat: String
maskRepeat=(String value)
maskRepeatX: String
maskRepeatX=(String value)
maskRepeatY: String
maskRepeatY=(String value)
maskSize: String
maskSize=(String value)
maxHeight: String
maxHeight=(String value)
maxLogicalHeight: String
maxLogicalHeight=(String value)
maxLogicalWidth: String
maxLogicalWidth=(String value)
maxWidth: String
maxWidth=(String value)
maxZoom: String
maxZoom=(String value)
minHeight: String
minHeight=(String value)
minLogicalHeight: String
minLogicalHeight=(String value)
minLogicalWidth: String
minLogicalWidth=(String value)
minWidth: String
minWidth=(String value)
minZoom: String
minZoom=(String value)
nbspMode: String
nbspMode=(String value)
opacity: String
opacity=(String value)
order: String
order=(String value)
orientation: String
orientation=(String value)
orphans: String
orphans=(String value)
outline: String
outline=(String value)
outlineColor: String
outlineColor=(String value)
outlineOffset: String
outlineOffset=(String value)
outlineStyle: String
outlineStyle=(String value)
outlineWidth: String
outlineWidth=(String value)
overflow: String
overflow=(String value)
overflowScrolling: String
overflowScrolling=(String value)
overflowWrap: String
overflowWrap=(String value)
overflowX: String
overflowX=(String value)
overflowY: String
overflowY=(String value)
padding: String
padding=(String value)
paddingAfter: String
paddingAfter=(String value)
paddingBefore: String
paddingBefore=(String value)
paddingBottom: String
paddingBottom=(String value)
paddingEnd: String
paddingEnd=(String value)
paddingLeft: String
paddingLeft=(String value)
paddingRight: String
paddingRight=(String value)
paddingStart: String
paddingStart=(String value)
paddingTop: String
paddingTop=(String value)
page: String
page=(String value)
pageBreakAfter: String
pageBreakAfter=(String value)
pageBreakBefore: String
pageBreakBefore=(String value)
pageBreakInside: String
pageBreakInside=(String value)
perspective: String
perspective=(String value)
perspectiveOrigin: String
perspectiveOrigin=(String value)
perspectiveOriginX: String
perspectiveOriginX=(String value)
perspectiveOriginY: String
perspectiveOriginY=(String value)
pointerEvents: String
pointerEvents=(String value)
position: String
position=(String value)
printColorAdjust: String
printColorAdjust=(String value)
quotes: String
quotes=(String value)
regionBreakAfter: String
regionBreakAfter=(String value)
regionBreakBefore: String
regionBreakBefore=(String value)
regionBreakInside: String
regionBreakInside=(String value)
regionOverflow: String
regionOverflow=(String value)
resize: String
resize=(String value)
right: String
right=(String value)
rtlOrdering: String
rtlOrdering=(String value)
shapeInside: String
shapeInside=(String value)
shapeMargin: String
shapeMargin=(String value)
shapeOutside: String
shapeOutside=(String value)
shapePadding: String
shapePadding=(String value)
size: String
size=(String value)
speak: String
speak=(String value)
src: String
src=(String value)
tabSize: String
tabSize=(String value)
tableLayout: String
tableLayout=(String value)
tapHighlightColor: String
tapHighlightColor=(String value)
textAlign: String
textAlign=(String value)
textAlignLast: String
textAlignLast=(String value)
textCombine: String
textCombine=(String value)
textDecoration: String
textDecoration=(String value)
textDecorationLine: String
textDecorationLine=(String value)
textDecorationStyle: String
textDecorationStyle=(String value)
textDecorationsInEffect: String
textDecorationsInEffect=(String value)
textEmphasis: String
textEmphasis=(String value)
textEmphasisColor: String
textEmphasisColor=(String value)
textEmphasisPosition: String
textEmphasisPosition=(String value)
textEmphasisStyle: String
textEmphasisStyle=(String value)
textFillColor: String
textFillColor=(String value)
textIndent: String
textIndent=(String value)
textLineThrough: String
textLineThrough=(String value)
textLineThroughColor: String
textLineThroughColor=(String value)
textLineThroughMode: String
textLineThroughMode=(String value)
textLineThroughStyle: String
textLineThroughStyle=(String value)
textLineThroughWidth: String
textLineThroughWidth=(String value)
textOrientation: String
textOrientation=(String value)
textOverflow: String
textOverflow=(String value)
textOverline: String
textOverline=(String value)
textOverlineColor: String
textOverlineColor=(String value)
textOverlineMode: String
textOverlineMode=(String value)
textOverlineStyle: String
textOverlineStyle=(String value)
textOverlineWidth: String
textOverlineWidth=(String value)
textRendering: String
textRendering=(String value)
textSecurity: String
textSecurity=(String value)
textShadow: String
textShadow=(String value)
textSizeAdjust: String
textSizeAdjust=(String value)
textStroke: String
textStroke=(String value)
textStrokeColor: String
textStrokeColor=(String value)
textStrokeWidth: String
textStrokeWidth=(String value)
textTransform: String
textTransform=(String value)
textUnderline: String
textUnderline=(String value)
textUnderlineColor: String
textUnderlineColor=(String value)
textUnderlineMode: String
textUnderlineMode=(String value)
textUnderlineStyle: String
textUnderlineStyle=(String value)
textUnderlineWidth: String
textUnderlineWidth=(String value)
top: String
top=(String value)
transform: String
transform=(String value)
transformOrigin: String
transformOrigin=(String value)
transformOriginX: String
transformOriginX=(String value)
transformOriginY: String
transformOriginY=(String value)
transformOriginZ: String
transformOriginZ=(String value)
transformStyle: String
transformStyle=(String value)
transition: String
transition=(String value)
transitionDelay: String
transitionDelay=(String value)
transitionDuration: String
transitionDuration=(String value)
transitionProperty: String
transitionProperty=(String value)
transitionTimingFunction: String
transitionTimingFunction=(String value)
unicodeBidi: String
unicodeBidi=(String value)
unicodeRange: String
unicodeRange=(String value)
userDrag: String
userDrag=(String value)
userModify: String
userModify=(String value)
userSelect: String
userSelect=(String value)
userZoom: String
userZoom=(String value)
verticalAlign: String
verticalAlign=(String value)
visibility: String
visibility=(String value)
whiteSpace: String
whiteSpace=(String value)
widows: String
widows=(String value)
width: String
width=(String value)
wordBreak: String
wordBreak=(String value)
wordSpacing: String
wordSpacing=(String value)
wordWrap: String
wordWrap=(String value)
wrap: String
wrap=(String value)
wrapFlow: String
wrapFlow=(String value)
wrapThrough: String
wrapThrough=(String value)
writingMode: String
writingMode=(String value)
zIndex: String
zIndex=(String value)
zoom: String
zoom=(String value)
- Constructors
-
CssStyleDeclarationBase()
- Methods
-
getPropertyValue(String propertyName): String
setProperty(String propertyName, String value, String priority): void
Fields
String alignContent
String alignItems
String alignSelf
String animation
String animationDelay
String animationDirection
String animationDuration
String animationFillMode
String animationIterationCount
String animationName
String animationPlayState
String animationTimingFunction
String appRegion
String appearance
String aspectRatio
String backfaceVisibility
String background
String backgroundAttachment
String backgroundClip
String backgroundColor
String backgroundComposite
String backgroundImage
String backgroundOrigin
String backgroundPosition
String backgroundPositionX
String backgroundPositionY
String backgroundRepeat
String backgroundRepeatX
String backgroundRepeatY
String backgroundSize
String blendMode
String border
String borderAfter
String borderAfterColor
String borderAfterStyle
String borderAfterWidth
String borderBefore
String borderBeforeColor
String borderBeforeStyle
String borderBeforeWidth
String borderBottom
String borderBottomColor
String borderBottomLeftRadius
String borderBottomRightRadius
String borderBottomStyle
String borderBottomWidth
String borderCollapse
String borderColor
String borderEnd
String borderEndColor
String borderEndStyle
String borderEndWidth
String borderFit
String borderHorizontalSpacing
String borderImage
String borderImageOutset
String borderImageRepeat
String borderImageSlice
String borderImageSource
String borderImageWidth
String borderLeft
String borderLeftColor
String borderLeftStyle
String borderLeftWidth
String borderRadius
String borderRight
String borderRightColor
String borderRightStyle
String borderRightWidth
String borderSpacing
String borderStart
String borderStartColor
String borderStartStyle
String borderStartWidth
String borderStyle
String borderTop
String borderTopColor
String borderTopLeftRadius
String borderTopRightRadius
String borderTopStyle
String borderTopWidth
String borderVerticalSpacing
String borderWidth
String bottom
String boxAlign
String boxDecorationBreak
String boxDirection
String boxFlex
String boxFlexGroup
String boxLines
String boxOrdinalGroup
String boxOrient
String boxPack
String boxReflect
String boxShadow
String boxSizing
String captionSide
String clear
String clip
String clipPath
String color
String colorCorrection
String columnAxis
String columnBreakAfter
String columnBreakBefore
String columnBreakInside
String columnCount
String columnGap
String columnProgression
String columnRule
String columnRuleColor
String columnRuleStyle
String columnRuleWidth
String columnSpan
String columnWidth
String columns
String content
String counterIncrement
String counterReset
String cursor
String dashboardRegion
String direction
String display
String emptyCells
String filter
String flex
String flexBasis
String flexDirection
String flexFlow
String flexGrow
String flexShrink
String flexWrap
String float
String flowFrom
String flowInto
String font
String fontFamily
String fontFeatureSettings
String fontKerning
String fontSize
String fontSizeDelta
String fontSmoothing
String fontStretch
String fontStyle
String fontVariant
String fontVariantLigatures
String fontWeight
String gridColumn
String gridColumns
String gridRow
String gridRows
String height
String highlight
String hyphenateCharacter
String hyphenateLimitAfter
String hyphenateLimitBefore
String hyphenateLimitLines
String hyphens
String imageOrientation
String imageRendering
String imageResolution
String justifyContent
String left
String letterSpacing
String lineAlign
String lineBoxContain
String lineBreak
String lineClamp
String lineGrid
String lineHeight
String lineSnap
String listStyle
String listStyleImage
String listStylePosition
String listStyleType
String locale
String logicalHeight
String logicalWidth
String margin
String marginAfter
String marginAfterCollapse
String marginBefore
String marginBeforeCollapse
String marginBottom
String marginBottomCollapse
String marginCollapse
String marginEnd
String marginLeft
String marginRight
String marginStart
String marginTop
String marginTopCollapse
String marquee
String marqueeDirection
String marqueeIncrement
String marqueeRepetition
String marqueeSpeed
String marqueeStyle
String mask
String maskAttachment
String maskBoxImage
String maskBoxImageOutset
String maskBoxImageRepeat
String maskBoxImageSlice
String maskBoxImageSource
String maskBoxImageWidth
String maskClip
String maskComposite
String maskImage
String maskOrigin
String maskPosition
String maskPositionX
String maskPositionY
String maskRepeat
String maskRepeatX
String maskRepeatY
String maskSize
String maxHeight
String maxLogicalHeight
String maxLogicalWidth
String maxWidth
String maxZoom
String minHeight
String minLogicalHeight
String minLogicalWidth
String minWidth
String minZoom
String nbspMode
String opacity
String order
String orientation
String orphans
String outline
String outlineColor
String outlineOffset
String outlineStyle
String outlineWidth
String overflow
String overflowScrolling
String overflowWrap
String overflowX
String overflowY
String padding
String paddingAfter
String paddingBefore
String paddingBottom
String paddingEnd
String paddingLeft
String paddingRight
String paddingStart
String paddingTop
String page
String pageBreakAfter
String pageBreakBefore
String pageBreakInside
String perspective
String perspectiveOrigin
String perspectiveOriginX
String perspectiveOriginY
String pointerEvents
String position
String printColorAdjust
String quotes
String regionBreakAfter
String regionBreakBefore
String regionBreakInside
String regionOverflow
String resize
String right
String rtlOrdering
String shapeInside
String shapeMargin
String shapeOutside
String shapePadding
String size
String speak
String src
String tabSize
String tableLayout
String tapHighlightColor
String textAlign
String textAlignLast
String textCombine
String textDecoration
String textDecorationLine
String textDecorationStyle
String textDecorationsInEffect
String textEmphasis
String textEmphasisColor
String textEmphasisPosition
String textEmphasisStyle
String textFillColor
String textIndent
String textLineThrough
String textLineThroughColor
String textLineThroughMode
String textLineThroughStyle
String textLineThroughWidth
String textOrientation
String textOverflow
String textOverline
String textOverlineColor
String textOverlineMode
String textOverlineStyle
String textOverlineWidth
String textRendering
String textSecurity
String textShadow
String textSizeAdjust
String textStroke
String textStrokeColor
String textStrokeWidth
String textTransform
String textUnderline
String textUnderlineColor
String textUnderlineMode
String textUnderlineStyle
String textUnderlineWidth
String top
String transform
String transformOrigin
String transformOriginX
String transformOriginY
String transformOriginZ
String transformStyle
String transition
String transitionDelay
String transitionDuration
String transitionProperty
String transitionTimingFunction
String unicodeBidi
String unicodeRange
String userDrag
String userModify
String userSelect
String userZoom
String verticalAlign
String visibility
String whiteSpace
String widows
String width
String wordBreak
String wordSpacing
String wordWrap
String wrap
String wrapFlow
String wrapThrough
String writingMode
String zIndex
String zoom
Getters and Setters
String get alignContent
Gets the value of "align-content"
set alignContent=(String value)
Sets the value of "align-content"
String get alignItems
Gets the value of "align-items"
set alignItems=(String value)
Sets the value of "align-items"
String get alignSelf
Gets the value of "align-self"
set alignSelf=(String value)
Sets the value of "align-self"
String get animation
Gets the value of "animation"
set animation=(String value)
Sets the value of "animation"
String get animationDelay
Gets the value of "animation-delay"
set animationDelay=(String value)
Sets the value of "animation-delay"
String get animationDirection
Gets the value of "animation-direction"
set animationDirection=(String value)
Sets the value of "animation-direction"
String get animationDuration
Gets the value of "animation-duration"
set animationDuration=(String value)
Sets the value of "animation-duration"
String get animationFillMode
Gets the value of "animation-fill-mode"
set animationFillMode=(String value)
Sets the value of "animation-fill-mode"
String get animationIterationCount
Gets the value of "animation-iteration-count"
set animationIterationCount=(String value)
Sets the value of "animation-iteration-count"
String get animationName
Gets the value of "animation-name"
set animationName=(String value)
Sets the value of "animation-name"
String get animationPlayState
Gets the value of "animation-play-state"
set animationPlayState=(String value)
Sets the value of "animation-play-state"
String get animationTimingFunction
Gets the value of "animation-timing-function"
set animationTimingFunction=(String value)
Sets the value of "animation-timing-function"
String get appRegion
Gets the value of "app-region"
set appRegion=(String value)
Sets the value of "app-region"
String get appearance
Gets the value of "appearance"
set appearance=(String value)
Sets the value of "appearance"
String get aspectRatio
Gets the value of "aspect-ratio"
set aspectRatio=(String value)
Sets the value of "aspect-ratio"
String get backfaceVisibility
Gets the value of "backface-visibility"
set backfaceVisibility=(String value)
Sets the value of "backface-visibility"
String get background
Gets the value of "background"
set background=(String value)
Sets the value of "background"
String get backgroundAttachment
Gets the value of "background-attachment"
set backgroundAttachment=(String value)
Sets the value of "background-attachment"
String get backgroundClip
Gets the value of "background-clip"
set backgroundClip=(String value)
Sets the value of "background-clip"
String get backgroundColor
Gets the value of "background-color"
set backgroundColor=(String value)
Sets the value of "background-color"
String get backgroundComposite
Gets the value of "background-composite"
set backgroundComposite=(String value)
Sets the value of "background-composite"
String get backgroundImage
Gets the value of "background-image"
set backgroundImage=(String value)
Sets the value of "background-image"
String get backgroundOrigin
Gets the value of "background-origin"
set backgroundOrigin=(String value)
Sets the value of "background-origin"
String get backgroundPosition
Gets the value of "background-position"
set backgroundPosition=(String value)
Sets the value of "background-position"
String get backgroundPositionX
Gets the value of "background-position-x"
set backgroundPositionX=(String value)
Sets the value of "background-position-x"
String get backgroundPositionY
Gets the value of "background-position-y"
set backgroundPositionY=(String value)
Sets the value of "background-position-y"
String get backgroundRepeat
Gets the value of "background-repeat"
set backgroundRepeat=(String value)
Sets the value of "background-repeat"
String get backgroundRepeatX
Gets the value of "background-repeat-x"
set backgroundRepeatX=(String value)
Sets the value of "background-repeat-x"
String get backgroundRepeatY
Gets the value of "background-repeat-y"
set backgroundRepeatY=(String value)
Sets the value of "background-repeat-y"
String get backgroundSize
Gets the value of "background-size"
set backgroundSize=(String value)
Sets the value of "background-size"
String get blendMode
Gets the value of "blend-mode"
set blendMode=(String value)
Sets the value of "blend-mode"
String get border
Gets the value of "border"
set border=(String value)
Sets the value of "border"
String get borderAfter
Gets the value of "border-after"
set borderAfter=(String value)
Sets the value of "border-after"
String get borderAfterColor
Gets the value of "border-after-color"
set borderAfterColor=(String value)
Sets the value of "border-after-color"
String get borderAfterStyle
Gets the value of "border-after-style"
set borderAfterStyle=(String value)
Sets the value of "border-after-style"
String get borderAfterWidth
Gets the value of "border-after-width"
set borderAfterWidth=(String value)
Sets the value of "border-after-width"
String get borderBefore
Gets the value of "border-before"
set borderBefore=(String value)
Sets the value of "border-before"
String get borderBeforeColor
Gets the value of "border-before-color"
set borderBeforeColor=(String value)
Sets the value of "border-before-color"
String get borderBeforeStyle
Gets the value of "border-before-style"
set borderBeforeStyle=(String value)
Sets the value of "border-before-style"
String get borderBeforeWidth
Gets the value of "border-before-width"
set borderBeforeWidth=(String value)
Sets the value of "border-before-width"
String get borderBottom
Gets the value of "border-bottom"
set borderBottom=(String value)
Sets the value of "border-bottom"
String get borderBottomColor
Gets the value of "border-bottom-color"
set borderBottomColor=(String value)
Sets the value of "border-bottom-color"
String get borderBottomLeftRadius
Gets the value of "border-bottom-left-radius"
set borderBottomLeftRadius=(String value)
Sets the value of "border-bottom-left-radius"
String get borderBottomRightRadius
Gets the value of "border-bottom-right-radius"
set borderBottomRightRadius=(String value)
Sets the value of "border-bottom-right-radius"
String get borderBottomStyle
Gets the value of "border-bottom-style"
set borderBottomStyle=(String value)
Sets the value of "border-bottom-style"
String get borderBottomWidth
Gets the value of "border-bottom-width"
set borderBottomWidth=(String value)
Sets the value of "border-bottom-width"
String get borderCollapse
Gets the value of "border-collapse"
set borderCollapse=(String value)
Sets the value of "border-collapse"
String get borderColor
Gets the value of "border-color"
set borderColor=(String value)
Sets the value of "border-color"
String get borderEnd
Gets the value of "border-end"
set borderEnd=(String value)
Sets the value of "border-end"
String get borderEndColor
Gets the value of "border-end-color"
set borderEndColor=(String value)
Sets the value of "border-end-color"
String get borderEndStyle
Gets the value of "border-end-style"
set borderEndStyle=(String value)
Sets the value of "border-end-style"
String get borderEndWidth
Gets the value of "border-end-width"
set borderEndWidth=(String value)
Sets the value of "border-end-width"
String get borderFit
Gets the value of "border-fit"
set borderFit=(String value)
Sets the value of "border-fit"
String get borderHorizontalSpacing
Gets the value of "border-horizontal-spacing"
set borderHorizontalSpacing=(String value)
Sets the value of "border-horizontal-spacing"
String get borderImage
Gets the value of "border-image"
set borderImage=(String value)
Sets the value of "border-image"
String get borderImageOutset
Gets the value of "border-image-outset"
set borderImageOutset=(String value)
Sets the value of "border-image-outset"
String get borderImageRepeat
Gets the value of "border-image-repeat"
set borderImageRepeat=(String value)
Sets the value of "border-image-repeat"
String get borderImageSlice
Gets the value of "border-image-slice"
set borderImageSlice=(String value)
Sets the value of "border-image-slice"
String get borderImageSource
Gets the value of "border-image-source"
set borderImageSource=(String value)
Sets the value of "border-image-source"
String get borderImageWidth
Gets the value of "border-image-width"
set borderImageWidth=(String value)
Sets the value of "border-image-width"
String get borderLeft
Gets the value of "border-left"
set borderLeft=(String value)
Sets the value of "border-left"
String get borderLeftColor
Gets the value of "border-left-color"
set borderLeftColor=(String value)
Sets the value of "border-left-color"
String get borderLeftStyle
Gets the value of "border-left-style"
set borderLeftStyle=(String value)
Sets the value of "border-left-style"
String get borderLeftWidth
Gets the value of "border-left-width"
set borderLeftWidth=(String value)
Sets the value of "border-left-width"
String get borderRadius
Gets the value of "border-radius"
set borderRadius=(String value)
Sets the value of "border-radius"
String get borderRight
Gets the value of "border-right"
set borderRight=(String value)
Sets the value of "border-right"
String get borderRightColor
Gets the value of "border-right-color"
set borderRightColor=(String value)
Sets the value of "border-right-color"
String get borderRightStyle
Gets the value of "border-right-style"
set borderRightStyle=(String value)
Sets the value of "border-right-style"
String get borderRightWidth
Gets the value of "border-right-width"
set borderRightWidth=(String value)
Sets the value of "border-right-width"
String get borderSpacing
Gets the value of "border-spacing"
set borderSpacing=(String value)
Sets the value of "border-spacing"
String get borderStart
Gets the value of "border-start"
set borderStart=(String value)
Sets the value of "border-start"
String get borderStartColor
Gets the value of "border-start-color"
set borderStartColor=(String value)
Sets the value of "border-start-color"
String get borderStartStyle
Gets the value of "border-start-style"
set borderStartStyle=(String value)
Sets the value of "border-start-style"
String get borderStartWidth
Gets the value of "border-start-width"
set borderStartWidth=(String value)
Sets the value of "border-start-width"
String get borderStyle
Gets the value of "border-style"
set borderStyle=(String value)
Sets the value of "border-style"
String get borderTop
Gets the value of "border-top"
set borderTop=(String value)
Sets the value of "border-top"
String get borderTopColor
Gets the value of "border-top-color"
set borderTopColor=(String value)
Sets the value of "border-top-color"
String get borderTopLeftRadius
Gets the value of "border-top-left-radius"
set borderTopLeftRadius=(String value)
Sets the value of "border-top-left-radius"
String get borderTopRightRadius
Gets the value of "border-top-right-radius"
set borderTopRightRadius=(String value)
Sets the value of "border-top-right-radius"
String get borderTopStyle
Gets the value of "border-top-style"
set borderTopStyle=(String value)
Sets the value of "border-top-style"
String get borderTopWidth
Gets the value of "border-top-width"
set borderTopWidth=(String value)
Sets the value of "border-top-width"
String get borderVerticalSpacing
Gets the value of "border-vertical-spacing"
set borderVerticalSpacing=(String value)
Sets the value of "border-vertical-spacing"
String get borderWidth
Gets the value of "border-width"
set borderWidth=(String value)
Sets the value of "border-width"
String get bottom
Gets the value of "bottom"
set bottom=(String value)
Sets the value of "bottom"
String get boxAlign
Gets the value of "box-align"
set boxAlign=(String value)
Sets the value of "box-align"
String get boxDecorationBreak
Gets the value of "box-decoration-break"
set boxDecorationBreak=(String value)
Sets the value of "box-decoration-break"
String get boxDirection
Gets the value of "box-direction"
set boxDirection=(String value)
Sets the value of "box-direction"
String get boxFlex
Gets the value of "box-flex"
set boxFlex=(String value)
Sets the value of "box-flex"
String get boxFlexGroup
Gets the value of "box-flex-group"
set boxFlexGroup=(String value)
Sets the value of "box-flex-group"
String get boxLines
Gets the value of "box-lines"
set boxLines=(String value)
Sets the value of "box-lines"
String get boxOrdinalGroup
Gets the value of "box-ordinal-group"
set boxOrdinalGroup=(String value)
Sets the value of "box-ordinal-group"
String get boxOrient
Gets the value of "box-orient"
set boxOrient=(String value)
Sets the value of "box-orient"
String get boxPack
Gets the value of "box-pack"
set boxPack=(String value)
Sets the value of "box-pack"
String get boxReflect
Gets the value of "box-reflect"
set boxReflect=(String value)
Sets the value of "box-reflect"
String get boxShadow
Gets the value of "box-shadow"
set boxShadow=(String value)
Sets the value of "box-shadow"
String get boxSizing
Gets the value of "box-sizing"
set boxSizing=(String value)
Sets the value of "box-sizing"
String get captionSide
Gets the value of "caption-side"
set captionSide=(String value)
Sets the value of "caption-side"
String get clear
Gets the value of "clear"
set clear=(String value)
Sets the value of "clear"
String get clip
set clip=(String value)
String get clipPath
Gets the value of "clip-path"
set clipPath=(String value)
Sets the value of "clip-path"
String get color
Gets the value of "color"
set color=(String value)
Sets the value of "color"
String get colorCorrection
Gets the value of "color-correction"
set colorCorrection=(String value)
Sets the value of "color-correction"
String get columnAxis
Gets the value of "column-axis"
set columnAxis=(String value)
Sets the value of "column-axis"
String get columnBreakAfter
Gets the value of "column-break-after"
set columnBreakAfter=(String value)
Sets the value of "column-break-after"
String get columnBreakBefore
Gets the value of "column-break-before"
set columnBreakBefore=(String value)
Sets the value of "column-break-before"
String get columnBreakInside
Gets the value of "column-break-inside"
set columnBreakInside=(String value)
Sets the value of "column-break-inside"
String get columnCount
Gets the value of "column-count"
set columnCount=(String value)
Sets the value of "column-count"
String get columnGap
Gets the value of "column-gap"
set columnGap=(String value)
Sets the value of "column-gap"
String get columnProgression
Gets the value of "column-progression"
set columnProgression=(String value)
Sets the value of "column-progression"
String get columnRule
Gets the value of "column-rule"
set columnRule=(String value)
Sets the value of "column-rule"
String get columnRuleColor
Gets the value of "column-rule-color"
set columnRuleColor=(String value)
Sets the value of "column-rule-color"
String get columnRuleStyle
Gets the value of "column-rule-style"
set columnRuleStyle=(String value)
Sets the value of "column-rule-style"
String get columnRuleWidth
Gets the value of "column-rule-width"
set columnRuleWidth=(String value)
Sets the value of "column-rule-width"
String get columnSpan
Gets the value of "column-span"
set columnSpan=(String value)
Sets the value of "column-span"
String get columnWidth
Gets the value of "column-width"
set columnWidth=(String value)
Sets the value of "column-width"
String get columns
Gets the value of "columns"
set columns=(String value)
Sets the value of "columns"
String get content
Gets the value of "content"
set content=(String value)
Sets the value of "content"
String get counterIncrement
Gets the value of "counter-increment"
set counterIncrement=(String value)
Sets the value of "counter-increment"
String get counterReset
Gets the value of "counter-reset"
set counterReset=(String value)
Sets the value of "counter-reset"
String get cursor
Gets the value of "cursor"
set cursor=(String value)
Sets the value of "cursor"
String get dashboardRegion
Gets the value of "dashboard-region"
set dashboardRegion=(String value)
Sets the value of "dashboard-region"
String get direction
Gets the value of "direction"
set direction=(String value)
Sets the value of "direction"
String get display
Gets the value of "display"
set display=(String value)
Sets the value of "display"
String get emptyCells
Gets the value of "empty-cells"
set emptyCells=(String value)
Sets the value of "empty-cells"
String get filter
Gets the value of "filter"
set filter=(String value)
Sets the value of "filter"
String get flex
set flex=(String value)
String get flexBasis
Gets the value of "flex-basis"
set flexBasis=(String value)
Sets the value of "flex-basis"
String get flexDirection
Gets the value of "flex-direction"
set flexDirection=(String value)
Sets the value of "flex-direction"
String get flexFlow
Gets the value of "flex-flow"
set flexFlow=(String value)
Sets the value of "flex-flow"
String get flexGrow
Gets the value of "flex-grow"
set flexGrow=(String value)
Sets the value of "flex-grow"
String get flexShrink
Gets the value of "flex-shrink"
set flexShrink=(String value)
Sets the value of "flex-shrink"
String get flexWrap
Gets the value of "flex-wrap"
set flexWrap=(String value)
Sets the value of "flex-wrap"
String get float
Gets the value of "float"
set float=(String value)
Sets the value of "float"
String get flowFrom
Gets the value of "flow-from"
set flowFrom=(String value)
Sets the value of "flow-from"
String get flowInto
Gets the value of "flow-into"
set flowInto=(String value)
Sets the value of "flow-into"
String get font
set font=(String value)
String get fontFamily
Gets the value of "font-family"
set fontFamily=(String value)
Sets the value of "font-family"
String get fontFeatureSettings
Gets the value of "font-feature-settings"
set fontFeatureSettings=(String value)
Sets the value of "font-feature-settings"
String get fontKerning
Gets the value of "font-kerning"
set fontKerning=(String value)
Sets the value of "font-kerning"
String get fontSize
Gets the value of "font-size"
set fontSize=(String value)
Sets the value of "font-size"
String get fontSizeDelta
Gets the value of "font-size-delta"
set fontSizeDelta=(String value)
Sets the value of "font-size-delta"
String get fontSmoothing
Gets the value of "font-smoothing"
set fontSmoothing=(String value)
Sets the value of "font-smoothing"
String get fontStretch
Gets the value of "font-stretch"
set fontStretch=(String value)
Sets the value of "font-stretch"
String get fontStyle
Gets the value of "font-style"
set fontStyle=(String value)
Sets the value of "font-style"
String get fontVariant
Gets the value of "font-variant"
set fontVariant=(String value)
Sets the value of "font-variant"
String get fontVariantLigatures
Gets the value of "font-variant-ligatures"
set fontVariantLigatures=(String value)
Sets the value of "font-variant-ligatures"
String get fontWeight
Gets the value of "font-weight"
set fontWeight=(String value)
Sets the value of "font-weight"
String get gridColumn
Gets the value of "grid-column"
set gridColumn=(String value)
Sets the value of "grid-column"
String get gridColumns
Gets the value of "grid-columns"
set gridColumns=(String value)
Sets the value of "grid-columns"
String get gridRow
Gets the value of "grid-row"
set gridRow=(String value)
Sets the value of "grid-row"
String get gridRows
Gets the value of "grid-rows"
set gridRows=(String value)
Sets the value of "grid-rows"
String get height
Gets the value of "height"
set height=(String value)
Sets the value of "height"
String get highlight
Gets the value of "highlight"
set highlight=(String value)
Sets the value of "highlight"
String get hyphenateCharacter
Gets the value of "hyphenate-character"
set hyphenateCharacter=(String value)
Sets the value of "hyphenate-character"
String get hyphenateLimitAfter
Gets the value of "hyphenate-limit-after"
set hyphenateLimitAfter=(String value)
Sets the value of "hyphenate-limit-after"
String get hyphenateLimitBefore
Gets the value of "hyphenate-limit-before"
set hyphenateLimitBefore=(String value)
Sets the value of "hyphenate-limit-before"
String get hyphenateLimitLines
Gets the value of "hyphenate-limit-lines"
set hyphenateLimitLines=(String value)
Sets the value of "hyphenate-limit-lines"
String get hyphens
Gets the value of "hyphens"
set hyphens=(String value)
Sets the value of "hyphens"
String get imageOrientation
Gets the value of "image-orientation"
set imageOrientation=(String value)
Sets the value of "image-orientation"
String get imageRendering
Gets the value of "image-rendering"
set imageRendering=(String value)
Sets the value of "image-rendering"
String get imageResolution
Gets the value of "image-resolution"
set imageResolution=(String value)
Sets the value of "image-resolution"
String get justifyContent
Gets the value of "justify-content"
set justifyContent=(String value)
Sets the value of "justify-content"
String get left
set left=(String value)
String get letterSpacing
Gets the value of "letter-spacing"
set letterSpacing=(String value)
Sets the value of "letter-spacing"
String get lineAlign
Gets the value of "line-align"
set lineAlign=(String value)
Sets the value of "line-align"
String get lineBoxContain
Gets the value of "line-box-contain"
set lineBoxContain=(String value)
Sets the value of "line-box-contain"
String get lineBreak
Gets the value of "line-break"
set lineBreak=(String value)
Sets the value of "line-break"
String get lineClamp
Gets the value of "line-clamp"
set lineClamp=(String value)
Sets the value of "line-clamp"
String get lineGrid
Gets the value of "line-grid"
set lineGrid=(String value)
Sets the value of "line-grid"
String get lineHeight
Gets the value of "line-height"
set lineHeight=(String value)
Sets the value of "line-height"
String get lineSnap
Gets the value of "line-snap"
set lineSnap=(String value)
Sets the value of "line-snap"
String get listStyle
Gets the value of "list-style"
set listStyle=(String value)
Sets the value of "list-style"
String get listStyleImage
Gets the value of "list-style-image"
set listStyleImage=(String value)
Sets the value of "list-style-image"
String get listStylePosition
Gets the value of "list-style-position"
set listStylePosition=(String value)
Sets the value of "list-style-position"
String get listStyleType
Gets the value of "list-style-type"
set listStyleType=(String value)
Sets the value of "list-style-type"
String get locale
Gets the value of "locale"
set locale=(String value)
Sets the value of "locale"
String get logicalHeight
Gets the value of "logical-height"
set logicalHeight=(String value)
Sets the value of "logical-height"
String get logicalWidth
Gets the value of "logical-width"
set logicalWidth=(String value)
Sets the value of "logical-width"
String get margin
Gets the value of "margin"
set margin=(String value)
Sets the value of "margin"
String get marginAfter
Gets the value of "margin-after"
set marginAfter=(String value)
Sets the value of "margin-after"
String get marginAfterCollapse
Gets the value of "margin-after-collapse"
set marginAfterCollapse=(String value)
Sets the value of "margin-after-collapse"
String get marginBefore
Gets the value of "margin-before"
set marginBefore=(String value)
Sets the value of "margin-before"
String get marginBeforeCollapse
Gets the value of "margin-before-collapse"
set marginBeforeCollapse=(String value)
Sets the value of "margin-before-collapse"
String get marginBottom
Gets the value of "margin-bottom"
set marginBottom=(String value)
Sets the value of "margin-bottom"
String get marginBottomCollapse
Gets the value of "margin-bottom-collapse"
set marginBottomCollapse=(String value)
Sets the value of "margin-bottom-collapse"
String get marginCollapse
Gets the value of "margin-collapse"
set marginCollapse=(String value)
Sets the value of "margin-collapse"
String get marginEnd
Gets the value of "margin-end"
set marginEnd=(String value)
Sets the value of "margin-end"
String get marginLeft
Gets the value of "margin-left"
set marginLeft=(String value)
Sets the value of "margin-left"
String get marginRight
Gets the value of "margin-right"
set marginRight=(String value)
Sets the value of "margin-right"
String get marginStart
Gets the value of "margin-start"
set marginStart=(String value)
Sets the value of "margin-start"
String get marginTop
Gets the value of "margin-top"
set marginTop=(String value)
Sets the value of "margin-top"
String get marginTopCollapse
Gets the value of "margin-top-collapse"
set marginTopCollapse=(String value)
Sets the value of "margin-top-collapse"
String get marquee
Gets the value of "marquee"
set marquee=(String value)
Sets the value of "marquee"
String get marqueeDirection
Gets the value of "marquee-direction"
set marqueeDirection=(String value)
Sets the value of "marquee-direction"
String get marqueeIncrement
Gets the value of "marquee-increment"
set marqueeIncrement=(String value)
Sets the value of "marquee-increment"
String get marqueeRepetition
Gets the value of "marquee-repetition"
set marqueeRepetition=(String value)
Sets the value of "marquee-repetition"
String get marqueeSpeed
Gets the value of "marquee-speed"
set marqueeSpeed=(String value)
Sets the value of "marquee-speed"
String get marqueeStyle
Gets the value of "marquee-style"
set marqueeStyle=(String value)
Sets the value of "marquee-style"
String get mask
set mask=(String value)
String get maskAttachment
Gets the value of "mask-attachment"
set maskAttachment=(String value)
Sets the value of "mask-attachment"
String get maskBoxImage
Gets the value of "mask-box-image"
set maskBoxImage=(String value)
Sets the value of "mask-box-image"
String get maskBoxImageOutset
Gets the value of "mask-box-image-outset"
set maskBoxImageOutset=(String value)
Sets the value of "mask-box-image-outset"
String get maskBoxImageRepeat
Gets the value of "mask-box-image-repeat"
set maskBoxImageRepeat=(String value)
Sets the value of "mask-box-image-repeat"
String get maskBoxImageSlice
Gets the value of "mask-box-image-slice"
set maskBoxImageSlice=(String value)
Sets the value of "mask-box-image-slice"
String get maskBoxImageSource
Gets the value of "mask-box-image-source"
set maskBoxImageSource=(String value)
Sets the value of "mask-box-image-source"
String get maskBoxImageWidth
Gets the value of "mask-box-image-width"
set maskBoxImageWidth=(String value)
Sets the value of "mask-box-image-width"
String get maskClip
Gets the value of "mask-clip"
set maskClip=(String value)
Sets the value of "mask-clip"
String get maskComposite
Gets the value of "mask-composite"
set maskComposite=(String value)
Sets the value of "mask-composite"
String get maskImage
Gets the value of "mask-image"
set maskImage=(String value)
Sets the value of "mask-image"
String get maskOrigin
Gets the value of "mask-origin"
set maskOrigin=(String value)
Sets the value of "mask-origin"
String get maskPosition
Gets the value of "mask-position"
set maskPosition=(String value)
Sets the value of "mask-position"
String get maskPositionX
Gets the value of "mask-position-x"
set maskPositionX=(String value)
Sets the value of "mask-position-x"
String get maskPositionY
Gets the value of "mask-position-y"
set maskPositionY=(String value)
Sets the value of "mask-position-y"
String get maskRepeat
Gets the value of "mask-repeat"
set maskRepeat=(String value)
Sets the value of "mask-repeat"
String get maskRepeatX
Gets the value of "mask-repeat-x"
set maskRepeatX=(String value)
Sets the value of "mask-repeat-x"
String get maskRepeatY
Gets the value of "mask-repeat-y"
set maskRepeatY=(String value)
Sets the value of "mask-repeat-y"
String get maskSize
Gets the value of "mask-size"
set maskSize=(String value)
Sets the value of "mask-size"
String get maxHeight
Gets the value of "max-height"
set maxHeight=(String value)
Sets the value of "max-height"
String get maxLogicalHeight
Gets the value of "max-logical-height"
set maxLogicalHeight=(String value)
Sets the value of "max-logical-height"
String get maxLogicalWidth
Gets the value of "max-logical-width"
set maxLogicalWidth=(String value)
Sets the value of "max-logical-width"
String get maxWidth
Gets the value of "max-width"
set maxWidth=(String value)
Sets the value of "max-width"
String get maxZoom
Gets the value of "max-zoom"
set maxZoom=(String value)
Sets the value of "max-zoom"
String get minHeight
Gets the value of "min-height"
set minHeight=(String value)
Sets the value of "min-height"
String get minLogicalHeight
Gets the value of "min-logical-height"
set minLogicalHeight=(String value)
Sets the value of "min-logical-height"
String get minLogicalWidth
Gets the value of "min-logical-width"
set minLogicalWidth=(String value)
Sets the value of "min-logical-width"
String get minWidth
Gets the value of "min-width"
set minWidth=(String value)
Sets the value of "min-width"
String get minZoom
Gets the value of "min-zoom"
set minZoom=(String value)
Sets the value of "min-zoom"
String get nbspMode
Gets the value of "nbsp-mode"
set nbspMode=(String value)
Sets the value of "nbsp-mode"
String get opacity
Gets the value of "opacity"
set opacity=(String value)
Sets the value of "opacity"
String get order
Gets the value of "order"
set order=(String value)
Sets the value of "order"
String get orientation
Gets the value of "orientation"
set orientation=(String value)
Sets the value of "orientation"
String get orphans
Gets the value of "orphans"
set orphans=(String value)
Sets the value of "orphans"
String get outline
Gets the value of "outline"
set outline=(String value)
Sets the value of "outline"
String get outlineColor
Gets the value of "outline-color"
set outlineColor=(String value)
Sets the value of "outline-color"
String get outlineOffset
Gets the value of "outline-offset"
set outlineOffset=(String value)
Sets the value of "outline-offset"
String get outlineStyle
Gets the value of "outline-style"
set outlineStyle=(String value)
Sets the value of "outline-style"
String get outlineWidth
Gets the value of "outline-width"
set outlineWidth=(String value)
Sets the value of "outline-width"
String get overflow
Gets the value of "overflow"
set overflow=(String value)
Sets the value of "overflow"
String get overflowScrolling
Gets the value of "overflow-scrolling"
set overflowScrolling=(String value)
Sets the value of "overflow-scrolling"
String get overflowWrap
Gets the value of "overflow-wrap"
set overflowWrap=(String value)
Sets the value of "overflow-wrap"
String get overflowX
Gets the value of "overflow-x"
set overflowX=(String value)
Sets the value of "overflow-x"
String get overflowY
Gets the value of "overflow-y"
set overflowY=(String value)
Sets the value of "overflow-y"
String get padding
Gets the value of "padding"
set padding=(String value)
Sets the value of "padding"
String get paddingAfter
Gets the value of "padding-after"
set paddingAfter=(String value)
Sets the value of "padding-after"
String get paddingBefore
Gets the value of "padding-before"
set paddingBefore=(String value)
Sets the value of "padding-before"
String get paddingBottom
Gets the value of "padding-bottom"
set paddingBottom=(String value)
Sets the value of "padding-bottom"
String get paddingEnd
Gets the value of "padding-end"
set paddingEnd=(String value)
Sets the value of "padding-end"
String get paddingLeft
Gets the value of "padding-left"
set paddingLeft=(String value)
Sets the value of "padding-left"
String get paddingRight
Gets the value of "padding-right"
set paddingRight=(String value)
Sets the value of "padding-right"
String get paddingStart
Gets the value of "padding-start"
set paddingStart=(String value)
Sets the value of "padding-start"
String get paddingTop
Gets the value of "padding-top"
set paddingTop=(String value)
Sets the value of "padding-top"
String get page
set page=(String value)
String get pageBreakAfter
Gets the value of "page-break-after"
set pageBreakAfter=(String value)
Sets the value of "page-break-after"
String get pageBreakBefore
Gets the value of "page-break-before"
set pageBreakBefore=(String value)
Sets the value of "page-break-before"
String get pageBreakInside
Gets the value of "page-break-inside"
set pageBreakInside=(String value)
Sets the value of "page-break-inside"
String get perspective
Gets the value of "perspective"
set perspective=(String value)
Sets the value of "perspective"
String get perspectiveOrigin
Gets the value of "perspective-origin"
set perspectiveOrigin=(String value)
Sets the value of "perspective-origin"
String get perspectiveOriginX
Gets the value of "perspective-origin-x"
set perspectiveOriginX=(String value)
Sets the value of "perspective-origin-x"
String get perspectiveOriginY
Gets the value of "perspective-origin-y"
set perspectiveOriginY=(String value)
Sets the value of "perspective-origin-y"
String get pointerEvents
Gets the value of "pointer-events"
set pointerEvents=(String value)
Sets the value of "pointer-events"
String get position
Gets the value of "position"
set position=(String value)
Sets the value of "position"
String get printColorAdjust
Gets the value of "print-color-adjust"
set printColorAdjust=(String value)
Sets the value of "print-color-adjust"
String get quotes
Gets the value of "quotes"
set quotes=(String value)
Sets the value of "quotes"
String get regionBreakAfter
Gets the value of "region-break-after"
set regionBreakAfter=(String value)
Sets the value of "region-break-after"
String get regionBreakBefore
Gets the value of "region-break-before"
set regionBreakBefore=(String value)
Sets the value of "region-break-before"
String get regionBreakInside
Gets the value of "region-break-inside"
set regionBreakInside=(String value)
Sets the value of "region-break-inside"
String get regionOverflow
Gets the value of "region-overflow"
set regionOverflow=(String value)
Sets the value of "region-overflow"
String get resize
Gets the value of "resize"
set resize=(String value)
Sets the value of "resize"
String get right
Gets the value of "right"
set right=(String value)
Sets the value of "right"
String get rtlOrdering
Gets the value of "rtl-ordering"
set rtlOrdering=(String value)
Sets the value of "rtl-ordering"
String get shapeInside
Gets the value of "shape-inside"
set shapeInside=(String value)
Sets the value of "shape-inside"
String get shapeMargin
Gets the value of "shape-margin"
set shapeMargin=(String value)
Sets the value of "shape-margin"
String get shapeOutside
Gets the value of "shape-outside"
set shapeOutside=(String value)
Sets the value of "shape-outside"
String get shapePadding
Gets the value of "shape-padding"
set shapePadding=(String value)
Sets the value of "shape-padding"
String get size
set size=(String value)
String get speak
Gets the value of "speak"
set speak=(String value)
Sets the value of "speak"
String get src
set src=(String value)
String get tabSize
Gets the value of "tab-size"
set tabSize=(String value)
Sets the value of "tab-size"
String get tableLayout
Gets the value of "table-layout"
set tableLayout=(String value)
Sets the value of "table-layout"
String get tapHighlightColor
Gets the value of "tap-highlight-color"
set tapHighlightColor=(String value)
Sets the value of "tap-highlight-color"
String get textAlign
Gets the value of "text-align"
set textAlign=(String value)
Sets the value of "text-align"
String get textAlignLast
Gets the value of "text-align-last"
set textAlignLast=(String value)
Sets the value of "text-align-last"
String get textCombine
Gets the value of "text-combine"
set textCombine=(String value)
Sets the value of "text-combine"
String get textDecoration
Gets the value of "text-decoration"
set textDecoration=(String value)
Sets the value of "text-decoration"
String get textDecorationLine
Gets the value of "text-decoration-line"
set textDecorationLine=(String value)
Sets the value of "text-decoration-line"
String get textDecorationStyle
Gets the value of "text-decoration-style"
set textDecorationStyle=(String value)
Sets the value of "text-decoration-style"
String get textDecorationsInEffect
Gets the value of "text-decorations-in-effect"
set textDecorationsInEffect=(String value)
Sets the value of "text-decorations-in-effect"
String get textEmphasis
Gets the value of "text-emphasis"
set textEmphasis=(String value)
Sets the value of "text-emphasis"
String get textEmphasisColor
Gets the value of "text-emphasis-color"
set textEmphasisColor=(String value)
Sets the value of "text-emphasis-color"
String get textEmphasisPosition
Gets the value of "text-emphasis-position"
set textEmphasisPosition=(String value)
Sets the value of "text-emphasis-position"
String get textEmphasisStyle
Gets the value of "text-emphasis-style"
set textEmphasisStyle=(String value)
Sets the value of "text-emphasis-style"
String get textFillColor
Gets the value of "text-fill-color"
set textFillColor=(String value)
Sets the value of "text-fill-color"
String get textIndent
Gets the value of "text-indent"
set textIndent=(String value)
Sets the value of "text-indent"
String get textLineThrough
Gets the value of "text-line-through"
set textLineThrough=(String value)
Sets the value of "text-line-through"
String get textLineThroughColor
Gets the value of "text-line-through-color"
set textLineThroughColor=(String value)
Sets the value of "text-line-through-color"
String get textLineThroughMode
Gets the value of "text-line-through-mode"
set textLineThroughMode=(String value)
Sets the value of "text-line-through-mode"
String get textLineThroughStyle
Gets the value of "text-line-through-style"
set textLineThroughStyle=(String value)
Sets the value of "text-line-through-style"
String get textLineThroughWidth
Gets the value of "text-line-through-width"
set textLineThroughWidth=(String value)
Sets the value of "text-line-through-width"
String get textOrientation
Gets the value of "text-orientation"
set textOrientation=(String value)
Sets the value of "text-orientation"
String get textOverflow
Gets the value of "text-overflow"
set textOverflow=(String value)
Sets the value of "text-overflow"
String get textOverline
Gets the value of "text-overline"
set textOverline=(String value)
Sets the value of "text-overline"
String get textOverlineColor
Gets the value of "text-overline-color"
set textOverlineColor=(String value)
Sets the value of "text-overline-color"
String get textOverlineMode
Gets the value of "text-overline-mode"
set textOverlineMode=(String value)
Sets the value of "text-overline-mode"
String get textOverlineStyle
Gets the value of "text-overline-style"
set textOverlineStyle=(String value)
Sets the value of "text-overline-style"
String get textOverlineWidth
Gets the value of "text-overline-width"
set textOverlineWidth=(String value)
Sets the value of "text-overline-width"
String get textRendering
Gets the value of "text-rendering"
set textRendering=(String value)
Sets the value of "text-rendering"
String get textSecurity
Gets the value of "text-security"
set textSecurity=(String value)
Sets the value of "text-security"
String get textShadow
Gets the value of "text-shadow"
set textShadow=(String value)
Sets the value of "text-shadow"
String get textSizeAdjust
Gets the value of "text-size-adjust"
set textSizeAdjust=(String value)
Sets the value of "text-size-adjust"
String get textStroke
Gets the value of "text-stroke"
set textStroke=(String value)
Sets the value of "text-stroke"
String get textStrokeColor
Gets the value of "text-stroke-color"
set textStrokeColor=(String value)
Sets the value of "text-stroke-color"
String get textStrokeWidth
Gets the value of "text-stroke-width"
set textStrokeWidth=(String value)
Sets the value of "text-stroke-width"
String get textTransform
Gets the value of "text-transform"
set textTransform=(String value)
Sets the value of "text-transform"
String get textUnderline
Gets the value of "text-underline"
set textUnderline=(String value)
Sets the value of "text-underline"
String get textUnderlineColor
Gets the value of "text-underline-color"
set textUnderlineColor=(String value)
Sets the value of "text-underline-color"
String get textUnderlineMode
Gets the value of "text-underline-mode"
set textUnderlineMode=(String value)
Sets the value of "text-underline-mode"
String get textUnderlineStyle
Gets the value of "text-underline-style"
set textUnderlineStyle=(String value)
Sets the value of "text-underline-style"
String get textUnderlineWidth
Gets the value of "text-underline-width"
set textUnderlineWidth=(String value)
Sets the value of "text-underline-width"
String get top
set top=(String value)
String get transform
Gets the value of "transform"
set transform=(String value)
Sets the value of "transform"
String get transformOrigin
Gets the value of "transform-origin"
set transformOrigin=(String value)
Sets the value of "transform-origin"
String get transformOriginX
Gets the value of "transform-origin-x"
set transformOriginX=(String value)
Sets the value of "transform-origin-x"
String get transformOriginY
Gets the value of "transform-origin-y"
set transformOriginY=(String value)
Sets the value of "transform-origin-y"
String get transformOriginZ
Gets the value of "transform-origin-z"
set transformOriginZ=(String value)
Sets the value of "transform-origin-z"
String get transformStyle
Gets the value of "transform-style"
set transformStyle=(String value)
Sets the value of "transform-style"
@
@
@
@
String get transition
Gets the value of "transition"
@
@
@
@
set transition=(String value)
Sets the value of "transition"
String get transitionDelay
Gets the value of "transition-delay"
set transitionDelay=(String value)
Sets the value of "transition-delay"
String get transitionDuration
Gets the value of "transition-duration"
set transitionDuration=(String value)
Sets the value of "transition-duration"
String get transitionProperty
Gets the value of "transition-property"
set transitionProperty=(String value)
Sets the value of "transition-property"
String get transitionTimingFunction
Gets the value of "transition-timing-function"
set transitionTimingFunction=(String value)
Sets the value of "transition-timing-function"
String get unicodeBidi
Gets the value of "unicode-bidi"
set unicodeBidi=(String value)
Sets the value of "unicode-bidi"
String get unicodeRange
Gets the value of "unicode-range"
set unicodeRange=(String value)
Sets the value of "unicode-range"
String get userDrag
Gets the value of "user-drag"
set userDrag=(String value)
Sets the value of "user-drag"
String get userModify
Gets the value of "user-modify"
set userModify=(String value)
Sets the value of "user-modify"
String get userSelect
Gets the value of "user-select"
set userSelect=(String value)
Sets the value of "user-select"
String get userZoom
Gets the value of "user-zoom"
set userZoom=(String value)
Sets the value of "user-zoom"
String get verticalAlign
Gets the value of "vertical-align"
set verticalAlign=(String value)
Sets the value of "vertical-align"
String get visibility
Gets the value of "visibility"
set visibility=(String value)
Sets the value of "visibility"
String get whiteSpace
Gets the value of "white-space"
set whiteSpace=(String value)
Sets the value of "white-space"
String get widows
Gets the value of "widows"
set widows=(String value)
Sets the value of "widows"
String get width
Gets the value of "width"
set width=(String value)
Sets the value of "width"
String get wordBreak
Gets the value of "word-break"
set wordBreak=(String value)
Sets the value of "word-break"
String get wordSpacing
Gets the value of "word-spacing"
set wordSpacing=(String value)
Sets the value of "word-spacing"
String get wordWrap
Gets the value of "word-wrap"
set wordWrap=(String value)
Sets the value of "word-wrap"
String get wrap
set wrap=(String value)
String get wrapFlow
Gets the value of "wrap-flow"
set wrapFlow=(String value)
Sets the value of "wrap-flow"
String get wrapThrough
Gets the value of "wrap-through"
set wrapThrough=(String value)
Sets the value of "wrap-through"
String get writingMode
Gets the value of "writing-mode"
set writingMode=(String value)
Sets the value of "writing-mode"
String get zIndex
Gets the value of "z-index"
set zIndex=(String value)
Sets the value of "z-index"
String get zoom
set zoom=(String value)
Constructors
CssStyleDeclarationBase()
Methods
String getPropertyValue(String propertyName)
void setProperty(String propertyName, String value, String priority)
@
@
Class CssStyleRule extends CssRule
- Fields
-
selectorText: String
style: CssStyleDeclaration
- Getters and Setters
-
selectorText: String
selectorText=(String value)
style: CssStyleDeclaration
Fields
String selectorText
final CssStyleDeclaration style
Getters and Setters
@
@
String get selectorText
@
@
set selectorText=(String value)
@
@
CssStyleDeclaration get style
@
@
Class CssStyleSheet extends StyleSheet
- Fields
-
cssRules: List
ownerRule: CssRule
rules: List
- Getters and Setters
-
cssRules: List<CssRule>
ownerRule: CssRule
rules: List<CssRule>
- Methods
-
addRule(String selector, String style, int index): int
deleteRule(int index): void
insertRule(String rule, int index): int
removeRule(int index): void
Fields
final List cssRules
final CssRule ownerRule
final List rules
Getters and Setters
@
@
List<CssRule> get cssRules
@
@
CssRule get ownerRule
@
@
@
List<CssRule> get rules
Methods
int addRule(String selector, String style, int index)
@
@
void deleteRule(int index)
@
@
int insertRule(String rule, int index)
@
@
@
void removeRule(int index)
@
@
Class CssSupportsRule extends CssRule
- Fields
-
conditionText: String
cssRules: List
- Getters and Setters
-
conditionText: String
cssRules: List<CssRule>
- Methods
-
deleteRule(int index): void
insertRule(String rule, int index): int
Fields
final String conditionText
final List cssRules
Getters and Setters
@
@
String get conditionText
@
@
List<CssRule> get cssRules
Methods
@
@
void deleteRule(int index)
@
@
int insertRule(String rule, int index)
@
@
@
@
@
@deprecated
Class CssTransformValue extends _CssValueList
- Static Fields
-
CSS_MATRIX: int
CSS_MATRIX3D: int
CSS_PERSPECTIVE: int
CSS_ROTATE: int
CSS_ROTATE3D: int
CSS_ROTATEX: int
CSS_ROTATEY: int
CSS_ROTATEZ: int
CSS_SCALE: int
CSS_SCALE3D: int
CSS_SCALEX: int
CSS_SCALEY: int
CSS_SCALEZ: int
CSS_SKEW: int
CSS_SKEWX: int
CSS_SKEWY: int
CSS_TRANSLATE: int
CSS_TRANSLATE3D: int
CSS_TRANSLATEX: int
CSS_TRANSLATEY: int
CSS_TRANSLATEZ: int
- Fields
-
operationType: int
- Getters and Setters
-
operationType: int
Static Fields
@
@
static const int CSS_MATRIX = 11
@
@
static const int CSS_MATRIX3D = 21
@
@
static const int CSS_PERSPECTIVE = 20
@
@
static const int CSS_ROTATE = 4
@
@
static const int CSS_ROTATE3D = 17
@
@
static const int CSS_ROTATEX = 14
@
@
static const int CSS_ROTATEY = 15
@
@
static const int CSS_ROTATEZ = 16
@
@
static const int CSS_SCALE = 5
@
@
static const int CSS_SCALE3D = 19
@
@
static const int CSS_SCALEX = 6
@
@
static const int CSS_SCALEY = 7
@
@
static const int CSS_SCALEZ = 18
@
@
static const int CSS_SKEW = 8
@
@
static const int CSS_SKEWX = 9
@
@
static const int CSS_SKEWY = 10
@
@
static const int CSS_TRANSLATE = 1
@
@
static const int CSS_TRANSLATE3D = 13
@
@
static const int CSS_TRANSLATEX = 2
@
@
static const int CSS_TRANSLATEY = 3
@
@
static const int CSS_TRANSLATEZ = 12
Fields
final int operationType
Getters and Setters
@
@
int get operationType
@
@
@deprecated
Class CssUnknownRule extends CssRule
@
@
@
Class CssVariablesMap extends NativeFieldWrapperClass1
- Fields
-
size: int
- Getters and Setters
-
size: int
- Constructors
-
CssVariablesMap()
- Methods
-
clear(): void
delete(String name): bool
get(String name): String
has(String name): bool
set(String name, String value): void
Fields
final int size
Getters and Setters
@
@
@
int get size
Constructors
CssVariablesMap()
Methods
@
@
@
void clear()
@
@
@
bool delete(String name)
@
@
@
String get(String name)
@
@
@
bool has(String name)
@
@
@
void set(String name, String value)
@
@
@
Class CssViewportRule extends CssRule
- Fields
-
style: CssStyleDeclaration
- Getters and Setters
-
style: CssStyleDeclaration
Fields
final CssStyleDeclaration style
Getters and Setters
@
@
@
CssStyleDeclaration get style
@
Class CustomEvent extends Event
- Fields
-
detail: Object
- Getters and Setters
-
detail: Object
- Constructors
-
CustomEvent(String type, bool canBubble, bool cancelable, Object detail)
Fields
final Object detail
Getters and Setters
@
@
Object get detail
Constructors
factory CustomEvent(String type, bool canBubble, bool cancelable, Object detail)
@
@
Class DListElement extends HtmlElement
- Constructors
-
DListElement()
Constructors
@
@
factory DListElement()
@
@
@
@
@
@
Class DataListElement extends HtmlElement
- Static Fields
-
supported: bool
- Fields
-
options: HtmlCollection
- Getters and Setters
-
options: HtmlCollection
supported: bool
- Constructors
-
DataListElement()
Static Fields
static final bool supported
Fields
final HtmlCollection options
Getters and Setters
@
@
HtmlCollection get options
static bool get supported
Checks if this type is supported on the current platform.
Constructors
@
@
factory DataListElement()
@
@
Class DataTransfer extends NativeFieldWrapperClass1
- Fields
-
dropEffect: String
effectAllowed: String
files: List
items: DataTransferItemList
types: List
- Getters and Setters
-
dropEffect: String
dropEffect=(String value)
effectAllowed: String
effectAllowed=(String value)
files: List<File>
items: DataTransferItemList
types: List<dynamic>
- Constructors
-
DataTransfer()
- Methods
-
clearData(String type): void
getData(String type): String
setData(String type, String data): bool
setDragImage(Element element, int x, int y): void
Fields
String dropEffect
String effectAllowed
final List files
final DataTransferItemList items
final List types
Getters and Setters
@
@
String get dropEffect
@
@
set dropEffect=(String value)
@
@
String get effectAllowed
@
@
set effectAllowed=(String value)
@
@
List<File> get files
@
@
DataTransferItemList get items
@
@
List<dynamic> get types
Constructors
DataTransfer()
Methods
@
@
void clearData(String type)
@
@
String getData(String type)
Gets the data for the specified type.
The data is only available from within a drop operation (such as an Element.onDrop
event) and will return null
before the event is triggered.
Data transfer is prohibited across domains. If a drag originates from content from another domain or protocol (HTTP vs HTTPS) then the data cannot be accessed.
The type
can have values such as:
@
@
bool setData(String type, String data)
@
@
void setDragImage(Element element, int x, int y)
@
@
@
Class DataTransferItem extends NativeFieldWrapperClass1
- Fields
-
kind: String
type: String
- Getters and Setters
-
kind: String
type: String
- Constructors
-
DataTransferItem()
- Methods
-
getAsEntry(): Entry
getAsFile(): Blob
getAsString(): Future<String>
Fields
final String kind
final String type
Getters and Setters
@
@
String get kind
@
@
String get type
Constructors
DataTransferItem()
Methods
@
@
@
@
@
Entry getAsEntry()
@
@
Blob getAsFile()
Future<String> getAsString()
@
@
@
Class DataTransferItemList extends NativeFieldWrapperClass1
- Fields
-
length: int
- Getters and Setters
-
length: int
- Constructors
-
DataTransferItemList()
- Methods
-
add(dynamic data_OR_file, String type): DataTransferItem
addData(String data, String type): DataTransferItem
addFile(File file): DataTransferItem
clear(): void
remove(int index): void
Fields
final int length
Getters and Setters
@
@
int get length
Constructors
DataTransferItemList()
Methods
DataTransferItem add(dynamic data_OR_file, String type)
@
@
DataTransferItem addData(String data, String type)
@
@
DataTransferItem addFile(File file)
@
@
void clear()
@
@
@
void remove(int index)
@
@
Abstract class DateInputElement implements RangeInputElementBase
- Static Fields
-
supported: bool
- Fields
-
readOnly: bool
required: bool
valueAsDate: DateTime
- Getters and Setters
-
supported: bool
- Constructors
-
DateInputElement()
A date (year, month, day) with no time zone.
Use supported to check if this is supported on the current platform.
Static Fields
static final bool supported
Fields
@
bool readOnly
@
bool required
@
DateTime valueAsDate
Getters and Setters
static bool get supported
Returns true if this input type is supported on the current platform.
Constructors
factory DateInputElement()
@
@
@
Class DedicatedWorkerGlobalScope extends WorkerGlobalScope
- Static Fields
-
messageEvent: EventStreamProvider
- Fields
-
onMessage: Stream
- Getters and Setters
-
onMessage: Stream<MessageEvent>
- Methods
-
postMessage(Object message, List<dynamic> messagePorts): void
Static Fields
@
@
@
static const EventStreamProvider messageEvent
Fields
final Stream onMessage
Getters and Setters
@
@
@
Stream<MessageEvent> get onMessage
Methods
@
@
@
void postMessage(Object message, List<dynamic> messagePorts)
@
@
@
@
@
Class DetailsElement extends HtmlElement
- Static Fields
-
supported: bool
- Fields
-
open: bool
- Getters and Setters
-
open: bool
open=(bool value)
supported: bool
- Constructors
-
DetailsElement()
Static Fields
static final bool supported
Fields
bool open
Getters and Setters
@
@
bool get open
@
@
set open=(bool value)
static bool get supported
Checks if this type is supported on the current platform.
Constructors
@
@
factory DetailsElement()
@
@
@
Class DeviceAcceleration extends NativeFieldWrapperClass1
- Fields
-
x: double
y: double
z: double
- Getters and Setters
-
x: double
y: double
z: double
- Constructors
-
DeviceAcceleration()
Fields
final double x
final double y
final double z
Getters and Setters
@
@
double get x
@
@
double get y
@
@
double get z
Constructors
DeviceAcceleration()
@
@
@
Class DeviceMotionEvent extends Event
- Fields
-
acceleration: DeviceAcceleration
accelerationIncludingGravity: DeviceAcceleration
interval: double
rotationRate: DeviceRotationRate
- Getters and Setters
-
acceleration: DeviceAcceleration
accelerationIncludingGravity: DeviceAcceleration
interval: double
rotationRate: DeviceRotationRate
Fields
final DeviceAcceleration acceleration
final DeviceAcceleration accelerationIncludingGravity
final double interval
final DeviceRotationRate rotationRate
Getters and Setters
@
@
DeviceAcceleration get acceleration
@
@
DeviceAcceleration get accelerationIncludingGravity
@
@
double get interval
@
@
DeviceRotationRate get rotationRate
@
@
Class DeviceOrientationEvent extends Event
- Fields
-
absolute: bool
alpha: double
beta: double
gamma: double
- Getters and Setters
-
absolute: bool
alpha: double
beta: double
gamma: double
- Constructors
-
DeviceOrientationEvent(String type, bool canBubble, bool cancelable, num alpha, num beta, num gamma, bool absolute)
Fields
final bool absolute
final double alpha
final double beta
final double gamma
Getters and Setters
@
@
bool get absolute
@
@
double get alpha
@
@
double get beta
@
@
double get gamma
Constructors
factory DeviceOrientationEvent(String type, bool canBubble, bool cancelable, num alpha, num beta, num gamma, bool absolute)
@
@
@
Class DeviceRotationRate extends NativeFieldWrapperClass1
- Fields
-
alpha: double
beta: double
gamma: double
- Getters and Setters
-
alpha: double
beta: double
gamma: double
- Constructors
-
DeviceRotationRate()
Fields
final double alpha
final double beta
final double gamma
Getters and Setters
@
@
double get alpha
@
@
double get beta
@
@
double get gamma
Constructors
DeviceRotationRate()
@
@
@
Class DialogElement extends HtmlElement
- Fields
-
open: bool
returnValue: String
- Getters and Setters
-
open: bool
open=(bool value)
returnValue: String
returnValue=(String value)
- Methods
-
close(String returnValue): void
show(): void
showModal(): void
Fields
bool open
String returnValue
Getters and Setters
@
@
bool get open
@
@
set open=(bool value)
@
@
@
String get returnValue
@
@
@
set returnValue=(String value)
Methods
@
@
void close(String returnValue)
@
@
void show()
@
@
void showModal()
@
Class Dimension
- Fields
-
value: num
- Getters and Setters
-
value: num
- Constructors
-
Dimension.cm(num _value)
Dimension.css(String cssValue)
Dimension.em(num _value)
Dimension.ex(num _value)
Dimension.inch(num _value)
Dimension.mm(num _value)
Dimension.pc(num _value)
Dimension.percent(num _value)
Dimension.pt(num _value)
Dimension.px(num _value)
- Methods
-
toString(): String
Class representing a length measurement
(https://developer.mozilla.org/en-US/docs/Web/CSS/length) in CSS.
Fields
final num value
Getters and Setters
num get value
Return a unitless, numerical value of this CSS value.
Constructors
Dimension.cm(num _value)
Set this CSS Dimension to a centimeter value
.
Dimension.css(String cssValue)
Construct a Dimension object from the valid, simple CSS string cssValue
that represents a distance measurement.
This constructor is intended as a convenience method for working with simplistic CSS length measurements. Non-numeric values such as auto
or inherit
or invalid CSS will cause this constructor to throw a FormatError.
Dimension.em(num _value)
Set this CSS Dimension to the specified number of ems.
1em is equal to the current font size. (So 2ems is equal to double the font size). This is useful for producing website layouts that scale nicely with the user's desired font size.
Dimension.ex(num _value)
Set this CSS Dimension to the specified number of x-heights.
One ex is equal to the the x-height of a font's baseline to its mean line, generally the height of the letter "x" in the font, which is usually about half the font-size.
Dimension.inch(num _value)
Set this CSS Dimension to an inch value
.
Dimension.mm(num _value)
Set this CSS Dimension to a millimeter value
.
Dimension.pc(num _value)
Set this CSS Dimension to a pica value
.
Dimension.percent(num _value)
Set this CSS Dimension to a percentage value
.
Dimension.pt(num _value)
Set this CSS Dimension to a point value
.
Dimension.px(num _value)
Set this CSS Dimension to a pixel value
.
Methods
String toString()
Print out the CSS String representation of this value.
@
@
Class DirectoryEntry extends Entry
- Methods
-
createDirectory(String path, bool exclusive): Future<Entry>
createFile(String path, bool exclusive): Future<Entry>
createReader(): DirectoryReader
getDirectory(String path): Future<Entry>
getFile(String path): Future<Entry>
removeRecursively(): Future<dynamic>
Methods
Future<Entry> createDirectory(String path, bool exclusive)
Create a new directory with the specified path
. If exclusive
is true, the returned Future will complete with an error if a directory already exists with the specified path
.
Future<Entry> createFile(String path, bool exclusive)
Create a new file with the specified path
. If exclusive
is true, the returned Future will complete with an error if a file already exists at the specified path
.
@
@
DirectoryReader createReader()
Future<Entry> getDirectory(String path)
Retrieve an already existing directory entry. The returned future will result in an error if a directory at path
does not exist or if the item at path
is not a directory.
Future<Entry> getFile(String path)
Retrieve an already existing file entry. The returned future will result in an error if a file at path
does not exist or if the item at path
is not a file.
Future<dynamic> removeRecursively()
@
@
@
Class DirectoryReader extends NativeFieldWrapperClass1
- Constructors
-
DirectoryReader()
- Methods
-
readEntries(): Future<List<Entry>>
Constructors
DirectoryReader()
Methods
Future<List<Entry>> readEntries()
@
@
Class DivElement extends HtmlElement
- Constructors
-
DivElement()
A generic container for content on an HTML page; corresponds to the <div> tag.
The DivElement
is a generic container and does not have any semantic significance. It is functionally similar to SpanElement
.
The DivElement
is a block-level element, as opposed to SpanElement
, which is an inline-level element.
Example usage:
DivElement div = new DivElement();
div.text = 'Here's my new DivElem
document.body.elements.add(elem);
See also:
HTML <div> element
(http://www.w3.org/TR/html-markup/div.html) from W3C.Block-level element
(http://www.w3.org/TR/CSS2/visuren.html#block-boxes) from W3C.Inline-level element
(http://www.w3.org/TR/CSS2/visuren.html#inline-boxes) from W3C.
Constructors
@
@
factory DivElement()
@
@
Class Document extends Node
- Static Fields
-
pointerLockChangeEvent: EventStreamProvider
pointerLockErrorEvent: EventStreamProvider
readyStateChangeEvent: EventStreamProvider
securityPolicyViolationEvent: EventStreamProvider
selectionChangeEvent: EventStreamProvider
- Fields
-
charset: String
cookie: String
currentScript: ScriptElement
documentElement: Element
domain: String
fontloader: FontLoader
implementation: DomImplementation
onAbort: Stream
onBeforeCopy: Stream
onBeforeCut: Stream
onBeforePaste: Stream
onBlur: Stream
onChange: Stream
onClick: Stream
onContextMenu: Stream
onCopy: Stream
onCut: Stream
onDoubleClick: Stream
onDrag: Stream
onDragEnd: Stream
onDragEnter: Stream
onDragLeave: Stream
onDragOver: Stream
onDragStart: Stream
onDrop: Stream
onError: Stream
onFocus: Stream
onFullscreenChange: Stream
onFullscreenError: Stream
onInput: Stream
onInvalid: Stream
onKeyDown: Stream
onKeyPress: Stream
onKeyUp: Stream
onLoad: Stream
onMouseDown: Stream
onMouseEnter: Stream
onMouseLeave: Stream
onMouseMove: Stream
onMouseOut: Stream
onMouseOver: Stream
onMouseUp: Stream
onMouseWheel: Stream
onPaste: Stream
onPointerLockChange: Stream
onPointerLockError: Stream
onReadyStateChange: Stream
onReset: Stream
onScroll: Stream
onSearch: Stream
onSecurityPolicyViolation: Stream
onSelect: Stream
onSelectStart: Stream
onSelectionChange: Stream
onSubmit: Stream
onTouchCancel: Stream
onTouchEnd: Stream
onTouchMove: Stream
onTouchStart: Stream
readyState: String
securityPolicy: SecurityPolicy
supportsRegister: bool
window: WindowBase
- Getters and Setters
-
charset: String
charset=(String value)
cookie: String
cookie=(String value)
currentScript: ScriptElement
documentElement: Element
domain: String
fontloader: FontLoader
implementation: DomImplementation
onAbort: Stream<Event>
onBeforeCopy: Stream<Event>
onBeforeCut: Stream<Event>
onBeforePaste: Stream<Event>
onBlur: Stream<Event>
onChange: Stream<Event>
onClick: Stream<MouseEvent>
onContextMenu: Stream<MouseEvent>
onCopy: Stream<Event>
onCut: Stream<Event>
onDoubleClick: Stream<Event>
onDrag: Stream<MouseEvent>
onDragEnd: Stream<MouseEvent>
onDragEnter: Stream<MouseEvent>
onDragLeave: Stream<MouseEvent>
onDragOver: Stream<MouseEvent>
onDragStart: Stream<MouseEvent>
onDrop: Stream<MouseEvent>
onError: Stream<Event>
onFocus: Stream<Event>
onFullscreenChange: Stream<Event>
onFullscreenError: Stream<Event>
onInput: Stream<Event>
onInvalid: Stream<Event>
onKeyDown: Stream<KeyboardEvent>
onKeyPress: Stream<KeyboardEvent>
onKeyUp: Stream<KeyboardEvent>
onLoad: Stream<Event>
onMouseDown: Stream<MouseEvent>
onMouseEnter: Stream<MouseEvent>
onMouseLeave: Stream<MouseEvent>
onMouseMove: Stream<MouseEvent>
onMouseOut: Stream<MouseEvent>
onMouseOver: Stream<MouseEvent>
onMouseUp: Stream<MouseEvent>
onMouseWheel: Stream<WheelEvent>
onPaste: Stream<Event>
onPointerLockChange: Stream<Event>
onPointerLockError: Stream<Event>
onReadyStateChange: Stream<Event>
onReset: Stream<Event>
onScroll: Stream<Event>
onSearch: Stream<Event>
onSecurityPolicyViolation: Stream<SecurityPolicyViolationEvent>
onSelect: Stream<Event>
onSelectStart: Stream<Event>
onSelectionChange: Stream<Event>
onSubmit: Stream<Event>
onTouchCancel: Stream<TouchEvent>
onTouchEnd: Stream<TouchEvent>
onTouchMove: Stream<TouchEvent>
onTouchStart: Stream<TouchEvent>
readyState: String
securityPolicy: SecurityPolicy
supportsRegister: bool
window: WindowBase
- Methods
-
adoptNode(Node source): Node
createCDataSection(String data): CDataSection
createDocumentFragment(): DocumentFragment
createElement(String localName_OR_tagName, String typeExtension): Element
createElementNS(String namespaceURI, String qualifiedName, String typeExtension): Element
createRange(): Range
execCommand(String command, bool userInterface, String value): bool
getElementById(String elementId): Element
getElementsByClassName(String tagname): List<Node>
getElementsByName(String elementName): List<Node>
getElementsByTagName(String tagname): List<Node>
getNamedFlows(): NamedFlowCollection
importNode(Node importedNode, bool deep): Node
query(String selectors): Element
queryAll(String selectors): ElementList<dynamic>
queryCommandEnabled(String command): bool
queryCommandIndeterm(String command): bool
queryCommandState(String command): bool
queryCommandSupported(String command): bool
queryCommandValue(String command): String
The base class for all documents.
Each web page loaded in the browser has its own Document
object, which is typically an HtmlDocument
.
If you aren't comfortable with DOM concepts, see the Dart tutorial Target 2: Connect Dart & HTML
(http://www.dartlang.org/docs/tutorials/connect-dart-html/).
Static Fields
@
@
@
@
@
static const EventStreamProvider pointerLockChangeEvent
@
@
@
@
@
static const EventStreamProvider pointerLockErrorEvent
@
@
static const EventStreamProvider readyStateChangeEvent
@
@
@
static const EventStreamProvider securityPolicyViolationEvent
@
@
static const EventStreamProvider selectionChangeEvent
Fields
String charset
String cookie
final ScriptElement currentScript
final Element documentElement
final String domain
final FontLoader fontloader
final DomImplementation implementation
final Stream onAbort
final Stream onBeforeCopy
final Stream onBeforeCut
final Stream onBeforePaste
final Stream onBlur
final Stream onChange
final Stream onClick
final Stream onContextMenu
final Stream onCopy
final Stream onCut
final Stream onDoubleClick
final Stream onDrag
final Stream onDragEnd
final Stream onDragEnter
final Stream onDragLeave
final Stream onDragOver
final Stream onDragStart
final Stream onDrop
final Stream onError
final Stream onFocus
final Stream onFullscreenChange
final Stream onFullscreenError
final Stream onInput
final Stream onInvalid
final Stream onKeyDown
final Stream onKeyPress
final Stream onKeyUp
final Stream onLoad
final Stream onMouseDown
final Stream onMouseEnter
final Stream onMouseLeave
final Stream onMouseMove
final Stream onMouseOut
final Stream onMouseOver
final Stream onMouseUp
final Stream onMouseWheel
final Stream onPaste
final Stream onPointerLockChange
final Stream onPointerLockError
final Stream onReadyStateChange
final Stream onReset
final Stream onScroll
final Stream onSearch
final Stream onSecurityPolicyViolation
final Stream onSelect
final Stream onSelectStart
final Stream onSelectionChange
final Stream onSubmit
final Stream onTouchCancel
final Stream onTouchEnd
final Stream onTouchMove
final Stream onTouchStart
final String readyState
final SecurityPolicy securityPolicy
final bool supportsRegister
final WindowBase window
Getters and Setters
@
@
@deprecated
String get charset
@
@
@deprecated
set charset=(String value)
@
@
String get cookie
@
@
set cookie=(String value)
@
@
@
ScriptElement get currentScript
@
@
Element get documentElement
@
@
String get domain
@
@
@
FontLoader get fontloader
@
@
DomImplementation get implementation
@
@
Stream<Event> get onAbort
@
@
Stream<Event> get onBeforeCopy
@
@
Stream<Event> get onBeforeCut
@
@
Stream<Event> get onBeforePaste
@
@
Stream<Event> get onBlur
@
@
Stream<Event> get onChange
@
@
Stream<MouseEvent> get onClick
@
@
Stream<MouseEvent> get onContextMenu
@
@
Stream<Event> get onCopy
@
@
Stream<Event> get onCut
@
@
Stream<Event> get onDoubleClick
@
@
Stream<MouseEvent> get onDrag
@
@
Stream<MouseEvent> get onDragEnd
@
@
Stream<MouseEvent> get onDragEnter
@
@
Stream<MouseEvent> get onDragLeave
@
@
Stream<MouseEvent> get onDragOver
@
@
Stream<MouseEvent> get onDragStart
@
@
Stream<MouseEvent> get onDrop
@
@
Stream<Event> get onError
@
@
Stream<Event> get onFocus
@
@
@
Stream<Event> get onFullscreenChange
@
@
@
Stream<Event> get onFullscreenError
@
@
Stream<Event> get onInput
@
@
Stream<Event> get onInvalid
@
@
Stream<KeyboardEvent> get onKeyDown
@
@
Stream<KeyboardEvent> get onKeyPress
@
@
Stream<KeyboardEvent> get onKeyUp
@
@
Stream<Event> get onLoad
@
@
Stream<MouseEvent> get onMouseDown
@
@
@
Stream<MouseEvent> get onMouseEnter
@
@
@
Stream<MouseEvent> get onMouseLeave
@
@
Stream<MouseEvent> get onMouseMove
@
@
Stream<MouseEvent> get onMouseOut
@
@
Stream<MouseEvent> get onMouseOver
@
@
Stream<MouseEvent> get onMouseUp
@
@
Stream<WheelEvent> get onMouseWheel
@
@
Stream<Event> get onPaste
@
@
@
Stream<Event> get onPointerLockChange
@
@
@
Stream<Event> get onPointerLockError
@
@
Stream<Event> get onReadyStateChange
@
@
Stream<Event> get onReset
@
@
Stream<Event> get onScroll
@
@
@
Stream<Event> get onSearch
@
@
@
Stream<SecurityPolicyViolationEvent> get onSecurityPolicyViolation
@
@
Stream<Event> get onSelect
@
@
Stream<Event> get onSelectStart
@
@
Stream<Event> get onSelectionChange
@
@
Stream<Event> get onSubmit
@
@
@
Stream<TouchEvent> get onTouchCancel
@
@
@
Stream<TouchEvent> get onTouchEnd
@
@
@
Stream<TouchEvent> get onTouchMove
@
@
@
Stream<TouchEvent> get onTouchStart
@
@
String get readyState
@
@
@
SecurityPolicy get securityPolicy
bool get supportsRegister
Checks if register
is supported on the current platform.
@
@
WindowBase get window
Methods
@
@
Node adoptNode(Node source)
@
@
@deprecated
CDataSection createCDataSection(String data)
@
@
DocumentFragment createDocumentFragment()
Element createElement(String localName_OR_tagName, String typeExtension)
Element createElementNS(String namespaceURI, String qualifiedName, String typeExtension)
@
@
Range createRange()
@
@
bool execCommand(String command, bool userInterface, String value)
@
@
Element getElementById(String elementId)
@
@
List<Node> getElementsByClassName(String tagname)
@
@
List<Node> getElementsByName(String elementName)
@
@
List<Node> getElementsByTagName(String tagname)
@
@
@
@
@
NamedFlowCollection getNamedFlows()
Node importNode(Node importedNode, bool deep)
@
@
Element query(String selectors)
Finds the first descendant element of this document that matches the specified group of selectors.
Unless your webpage contains multiple documents, the top-level query method behaves the same as this method, so you should use it instead to save typing a few characters.
selectors
should be a string using CSS selector syntax.
var element1 = document.query('.className');
var element2 = document.query('#id');
For details about CSS selector syntax, see the
CSS selector specification
(http://www.w3.org/TR/css3-selectors/).
ElementList<dynamic> queryAll(String selectors)
Finds all descendant elements of this document that match the specified group of selectors.
Unless your webpage contains multiple documents, the top-level queryAll method behaves the same as this method, so you should use it instead to save typing a few characters.
selectors
should be a string using CSS selector syntax.
var items = document.queryAll('.itemClassName');
For details about CSS selector syntax, see the
CSS selector specification
(http://www.w3.org/TR/css3-selectors/).
@
@
bool queryCommandEnabled(String command)
@
@
bool queryCommandIndeterm(String command)
@
@
bool queryCommandState(String command)
@
@
bool queryCommandSupported(String command)
@
@
String queryCommandValue(String command)
@
Class DocumentFragment extends Node implements ParentNode
- Fields
-
children: List
innerHtml: String
- Getters and Setters
-
children: List<Element>
children=(List<Element> value)
innerHtml: String
innerHtml=(String value)
- Constructors
-
DocumentFragment()
DocumentFragment.html(String html, NodeValidator validator, NodeTreeSanitizer treeSanitizer)
DocumentFragment.svg(String svgContent, NodeValidator validator, NodeTreeSanitizer treeSanitizer)
- Methods
-
appendHtml(String text): void
appendText(String text): void
query(String selectors): Element
queryAll(String selectors): List<Element>
setInnerHtml(String html, NodeValidator validator, NodeTreeSanitizer treeSanitizer): void
Fields
List children
String innerHtml
Getters and Setters
List<Element> get children
set children=(List<Element> value)
String get innerHtml
set innerHtml=(String value)
Constructors
factory DocumentFragment()
factory DocumentFragment.html(String html, NodeValidator validator, NodeTreeSanitizer treeSanitizer)
factory DocumentFragment.svg(String svgContent, NodeValidator validator, NodeTreeSanitizer treeSanitizer)
Methods
void appendHtml(String text)
Parses the specified text as HTML and adds the resulting node after the last child of this document fragment.
void appendText(String text)
Adds the specified text as a text node after the last child of this document fragment.
Element query(String selectors)
List<Element> queryAll(String selectors)
void setInnerHtml(String html, NodeValidator validator, NodeTreeSanitizer treeSanitizer)
@
@
@deprecated
Class DocumentType extends Node implements ChildNode
@
@
Class DomError extends NativeFieldWrapperClass1
- Fields
-
message: String
name: String
- Getters and Setters
-
message: String
name: String
- Constructors
-
DomError()
Fields
final String message
final String name
Getters and Setters
@
@
@
String get message
@
@
String get name
Constructors
DomError()
@
@
Class DomException extends NativeFieldWrapperClass1
- Static Fields
-
ABORT: String
DATA_CLONE: String
HIERARCHY_REQUEST: String
INDEX_SIZE: String
INVALID_ACCESS: String
INVALID_CHARACTER: String
INVALID_MODIFICATION: String
INVALID_NODE_TYPE: String
INVALID_STATE: String
NAMESPACE: String
NETWORK: String
NOT_FOUND: String
NOT_SUPPORTED: String
NO_MODIFICATION_ALLOWED: String
QUOTA_EXCEEDED: String
SECURITY: String
SYNTAX: String
TIMEOUT: String
TYPE_MISMATCH: String
URL_MISMATCH: String
WRONG_DOCUMENT: String
- Fields
-
message: String
name: String
- Getters and Setters
-
message: String
name: String
- Constructors
-
DomException()
- Methods
-
toString(): String
Static Fields
static const String ABORT = 'AbortError'
static const String DATA_CLONE = 'DataCloneError'
static const String HIERARCHY_REQUEST = 'HierarchyRequestError'
static const String INDEX_SIZE = 'IndexSizeError'
static const String INVALID_ACCESS = 'InvalidAccessError'
static const String INVALID_CHARACTER = 'InvalidCharacterError'
static const String INVALID_MODIFICATION = 'InvalidModificationError'
static const String INVALID_NODE_TYPE = 'InvalidNodeTypeError'
static const String INVALID_STATE = 'InvalidStateError'
static const String NAMESPACE = 'NamespaceError'
static const String NETWORK = 'NetworkError'
static const String NOT_FOUND = 'NotFoundError'
static const String NOT_SUPPORTED = 'NotSupportedError'
static const String NO_MODIFICATION_ALLOWED = 'NoModificationAllowedError'
static const String QUOTA_EXCEEDED = 'QuotaExceededError'
static const String SECURITY = 'SecurityError'
static const String SYNTAX = 'SyntaxError'
static const String TIMEOUT = 'TimeoutError'
static const String TYPE_MISMATCH = 'TypeMismatchError'
static const String URL_MISMATCH = 'URLMismatchError'
static const String WRONG_DOCUMENT = 'WrongDocumentError'
Fields
final String message
final String name
Getters and Setters
@
@
String get message
@
@
String get name
Constructors
DomException()
Methods
@
@
String toString()
Returns a string representation of this object.
@
@
Class DomImplementation extends NativeFieldWrapperClass1
- Constructors
-
DomImplementation()
- Methods
-
createCssStyleSheet(String title, String media): CssStyleSheet
createDocument(String namespaceURI, String qualifiedName, DocumentType doctype): Document
createDocumentType(String qualifiedName, String publicId, String systemId): DocumentType
createHtmlDocument(String title): HtmlDocument
hasFeature(String feature, String version): bool
Constructors
DomImplementation()
Methods
@
@
@
CssStyleSheet createCssStyleSheet(String title, String media)
@
@
Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype)
@
@
DocumentType createDocumentType(String qualifiedName, String publicId, String systemId)
@
@
HtmlDocument createHtmlDocument(String title)
@
@
bool hasFeature(String feature, String version)
@
@
Class DomParser extends NativeFieldWrapperClass1
- Constructors
-
DomParser()
- Methods
-
parseFromString(String str, String contentType): Document
Constructors
@
@
factory DomParser()
Methods
@
@
Document parseFromString(String str, String contentType)
@
@
Class DomSettableTokenList extends DomTokenList
- Fields
-
value: String
- Getters and Setters
-
value: String
value=(String value)
Fields
String value
Getters and Setters
@
@
String get value
@
@
set value=(String value)
- Fields
-
first: String
last: String
length: int
single: String
- Getters and Setters
-
first: String
last: String
length: int
length=(int value)
single: String
- Constructors
-
DomStringList()
- Methods
-
[](int index): String
[]=(int index, String value): void
contains(String string): bool
elementAt(int index): String
item(int index): String
Fields
final String first
final String last
int length
final String single
Getters and Setters
String get first
String get last
@
@
int get length
set length=(int value)
String get single
Constructors
DomStringList()
Methods
String [](int index)
Returns the object at the given index
in the list or throws a RangeError
if index
is out of bounds.
void []=(int index, String value)
Sets the value at the given index
in the list to value
or throws a RangeError
if index
is out of bounds.
@
@
bool contains(String string)
Returns true if the collection contains an element equal to element
.
String elementAt(int index)
Returns the index
th element.
If this
has fewer than index
elements throws a RangeError
.
Note: if this
does not have a deterministic iteration order then the function may simply return any element without any iteration if there are at least index
elements in this
.
@
@
String item(int index)
@
@
Abstract class DomStringMap extends NativeFieldWrapperClass1
- Constructors
-
DomStringMap()
Constructors
DomStringMap()
@
@
Class DomTokenList extends NativeFieldWrapperClass1
- Fields
-
length: int
- Getters and Setters
-
length: int
- Constructors
-
DomTokenList()
- Methods
-
contains(String token): bool
item(int index): String
toString(): String
toggle(String token, bool force): bool
Fields
final int length
Getters and Setters
@
@
int get length
Constructors
DomTokenList()
Methods
@
@
bool contains(String token)
@
@
String item(int index)
@
@
String toString()
Returns a string representation of this object.
bool toggle(String token, bool force)
@
@
Abstract class Element extends Node implements ParentNode, ChildNode
- Static Fields
-
ALLOW_KEYBOARD_INPUT: int
abortEvent: EventStreamProvider
beforeCopyEvent: EventStreamProvider
beforeCutEvent: EventStreamProvider
beforePasteEvent: EventStreamProvider
blurEvent: EventStreamProvider
changeEvent: EventStreamProvider
clickEvent: EventStreamProvider
contextMenuEvent: EventStreamProvider
copyEvent: EventStreamProvider
cutEvent: EventStreamProvider
doubleClickEvent: EventStreamProvider
dragEndEvent: EventStreamProvider
dragEnterEvent: EventStreamProvider
dragEvent: EventStreamProvider
dragLeaveEvent: EventStreamProvider
dragOverEvent: EventStreamProvider
dragStartEvent: EventStreamProvider
dropEvent: EventStreamProvider
errorEvent: EventStreamProvider
focusEvent: EventStreamProvider
fullscreenChangeEvent: EventStreamProvider
fullscreenErrorEvent: EventStreamProvider
inputEvent: EventStreamProvider
invalidEvent: EventStreamProvider
keyDownEvent: EventStreamProvider
keyPressEvent: EventStreamProvider
keyUpEvent: EventStreamProvider
loadEvent: EventStreamProvider
mouseDownEvent: EventStreamProvider
mouseEnterEvent: EventStreamProvider
mouseLeaveEvent: EventStreamProvider
mouseMoveEvent: EventStreamProvider
mouseOutEvent: EventStreamProvider
mouseOverEvent: EventStreamProvider
mouseUpEvent: EventStreamProvider
mouseWheelEvent: EventStreamProvider
pasteEvent: EventStreamProvider
resetEvent: EventStreamProvider
scrollEvent: EventStreamProvider
searchEvent: EventStreamProvider
selectEvent: EventStreamProvider
selectStartEvent: EventStreamProvider
submitEvent: EventStreamProvider
touchCancelEvent: EventStreamProvider
touchEndEvent: EventStreamProvider
touchEnterEvent: EventStreamProvider
touchLeaveEvent: EventStreamProvider
touchMoveEvent: EventStreamProvider
touchStartEvent: EventStreamProvider
transitionEndEvent: EventStreamProvider
- Fields
-
attributes: Map
bindingDelegate: BindingDelegate
borderEdge: CssRect
children: List
className: String
classes: CssClassSet
client: Rect
clientHeight: int
clientLeft: int
clientTop: int
clientWidth: int
content: DocumentFragment
contentEdge: CssRect
contentEditable: String
dataset: Map
dir: String
documentOffset: Point
draggable: bool
dropzone: String
hidden: bool
id: String
innerHtml: String
inputMethodContext: InputMethodContext
isContentEditable: bool
isTemplate: bool
lang: String
localName: String
marginEdge: CssRect
model: dynamic
namespaceUri: String
nextElementSibling: Element
offset: Rect
offsetHeight: int
offsetLeft: int
offsetParent: Element
offsetTop: int
offsetWidth: int
onAbort: ElementStream
onBeforeCopy: ElementStream
onBeforeCut: ElementStream
onBeforePaste: ElementStream
onBlur: ElementStream
onChange: ElementStream
onClick: ElementStream
onContextMenu: ElementStream
onCopy: ElementStream
onCut: ElementStream
onDoubleClick: ElementStream
onDrag: ElementStream
onDragEnd: ElementStream
onDragEnter: ElementStream
onDragLeave: ElementStream
onDragOver: ElementStream
onDragStart: ElementStream
onDrop: ElementStream
onError: ElementStream
onFocus: ElementStream
onFullscreenChange: ElementStream
onFullscreenError: ElementStream
onInput: ElementStream
onInvalid: ElementStream
onKeyDown: ElementStream
onKeyPress: ElementStream
onKeyUp: ElementStream
onLoad: ElementStream
onMouseDown: ElementStream
onMouseEnter: ElementStream
onMouseLeave: ElementStream
onMouseMove: ElementStream
onMouseOut: ElementStream
onMouseOver: ElementStream
onMouseUp: ElementStream
onMouseWheel: ElementStream
onPaste: ElementStream
onReset: ElementStream
onScroll: ElementStream
onSearch: ElementStream
onSelect: ElementStream
onSelectStart: ElementStream
onSubmit: ElementStream
onTouchCancel: ElementStream
onTouchEnd: ElementStream
onTouchEnter: ElementStream
onTouchLeave: ElementStream
onTouchMove: ElementStream
onTouchStart: ElementStream
onTransitionEnd: ElementStream
outerHtml: String
paddingEdge: CssRect
previousElementSibling: Element
pseudo: String
ref: Element
regionOverset: String
scrollHeight: int
scrollLeft: int
scrollTop: int
scrollWidth: int
shadowRoot: ShadowRoot
spellcheck: bool
style: CssStyleDeclaration
tabIndex: int
tagName: String
title: String
translate: bool
unsafeInnerHtml: String
xtag: dynamic
- Getters and Setters
-
attributes: Map<String, String>
attributes=(Map<String, String> value)
bindingDelegate: BindingDelegate
bindingDelegate=(BindingDelegate value)
borderEdge: CssRect
children: List<Element>
children=(List<Element> value)
className: String
className=(String value)
classes: CssClassSet
classes=(Iterable<String> value)
client: Rect
clientHeight: int
clientLeft: int
clientTop: int
clientWidth: int
content: DocumentFragment
contentEdge: CssRect
dataset: Map<String, String>
dataset=(Map<String, String> value)
documentOffset: Point
id: String
id=(String value)
innerHtml: String
innerHtml=(String html)
inputMethodContext: InputMethodContext
isContentEditable: bool
isTemplate: bool
localName: String
marginEdge: CssRect
model: dynamic
model=(dynamic value)
namespaceUri: String
nextElementSibling: Element
offset: Rect
offsetHeight: int
offsetLeft: int
offsetParent: Element
offsetTop: int
offsetWidth: int
onAbort: ElementStream<Event>
onBeforeCopy: ElementStream<Event>
onBeforeCut: ElementStream<Event>
onBeforePaste: ElementStream<Event>
onBlur: ElementStream<Event>
onChange: ElementStream<Event>
onClick: ElementStream<MouseEvent>
onContextMenu: ElementStream<MouseEvent>
onCopy: ElementStream<Event>
onCut: ElementStream<Event>
onDoubleClick: ElementStream<Event>
onDrag: ElementStream<MouseEvent>
onDragEnd: ElementStream<MouseEvent>
onDragEnter: ElementStream<MouseEvent>
onDragLeave: ElementStream<MouseEvent>
onDragOver: ElementStream<MouseEvent>
onDragStart: ElementStream<MouseEvent>
onDrop: ElementStream<MouseEvent>
onError: ElementStream<Event>
onFocus: ElementStream<Event>
onFullscreenChange: ElementStream<Event>
onFullscreenError: ElementStream<Event>
onInput: ElementStream<Event>
onInvalid: ElementStream<Event>
onKeyDown: ElementStream<KeyboardEvent>
onKeyPress: ElementStream<KeyboardEvent>
onKeyUp: ElementStream<KeyboardEvent>
onLoad: ElementStream<Event>
onMouseDown: ElementStream<MouseEvent>
onMouseEnter: ElementStream<MouseEvent>
onMouseLeave: ElementStream<MouseEvent>
onMouseMove: ElementStream<MouseEvent>
onMouseOut: ElementStream<MouseEvent>
onMouseOver: ElementStream<MouseEvent>
onMouseUp: ElementStream<MouseEvent>
onMouseWheel: ElementStream<WheelEvent>
onPaste: ElementStream<Event>
onReset: ElementStream<Event>
onScroll: ElementStream<Event>
onSearch: ElementStream<Event>
onSelect: ElementStream<Event>
onSelectStart: ElementStream<Event>
onSubmit: ElementStream<Event>
onTouchCancel: ElementStream<TouchEvent>
onTouchEnd: ElementStream<TouchEvent>
onTouchEnter: ElementStream<TouchEvent>
onTouchLeave: ElementStream<TouchEvent>
onTouchMove: ElementStream<TouchEvent>
onTouchStart: ElementStream<TouchEvent>
onTransitionEnd: ElementStream<TransitionEvent>
outerHtml: String
paddingEdge: CssRect
previousElementSibling: Element
pseudo: String
pseudo=(String value)
ref: Element
regionOverset: String
scrollHeight: int
scrollLeft: int
scrollLeft=(int value)
scrollTop: int
scrollTop=(int value)
scrollWidth: int
shadowRoot: ShadowRoot
style: CssStyleDeclaration
tagName: String
unsafeInnerHtml=(String html)
xtag: dynamic
xtag=(Element value)
- Constructors
-
Element.a()
Element.article()
Element.aside()
Element.audio()
Element.br()
Element.canvas()
Element.div()
Element.footer()
Element.header()
Element.hr()
Element.html(String html, NodeValidator validator, NodeTreeSanitizer treeSanitizer)
Element.iframe()
Element.img()
Element.li()
Element.nav()
Element.ol()
Element.option()
Element.p()
Element.pre()
Element.section()
Element.select()
Element.span()
Element.svg()
Element.table()
Element.tag(String tag, String typeExtention)
Element.td()
Element.textarea()
Element.th()
Element.tr()
Element.ul()
Element.video()
- Methods
-
appendHtml(String text): void
appendText(String text): void
blur(): void
click(): void
createFragment(String html, NodeValidator validator, NodeTreeSanitizer treeSanitizer): DocumentFragment
createInstance(dynamic model, BindingDelegate delegate): DocumentFragment
createShadowRoot(): ShadowRoot
created(): void
focus(): void
getAttribute(String name): String
getAttributeNS(String namespaceURI, String localName): String
getBoundingClientRect(): Rect
getClientRects(): List<Rect>
getComputedStyle(String pseudoElement): CssStyleDeclaration
getDestinationInsertionPoints(): List<Node>
getElementsByClassName(String name): List<Node>
getNamespacedAttributes(String namespace): Map<String, String>
getRegionFlowRanges(): List<Range>
insertAdjacentElement(String where, Element element): Element
insertAdjacentHtml(String where, String html): void
insertAdjacentText(String where, String text): void
isTagSupported(String tag): bool
matches(String selectors): bool
matchesWithAncestors(String selectors): bool
offsetTo(Element parent): Point
query(String selectors): Element
queryAll(String selectors): ElementList<dynamic>
remove(): void
requestFullScreen(int flags): void
requestFullscreen(): void
requestPointerLock(): void
scrollByLines(int lines): void
scrollByPages(int pages): void
scrollIntoView(ScrollAlignment alignment): void
setAttribute(String name, String value): void
setAttributeNS(String namespaceURI, String qualifiedName, String value): void
setInnerHtml(String html, NodeValidator validator, NodeTreeSanitizer treeSanitizer): void
toString(): String
An abstract class, which all HTML elements extend.
Static Fields
@
@
@deprecated
static const int ALLOW_KEYBOARD_INPUT = 1
@
@
static const EventStreamProvider abortEvent
@
@
static const EventStreamProvider beforeCopyEvent
@
@
static const EventStreamProvider beforeCutEvent
@
@
static const EventStreamProvider beforePasteEvent
@
@
static const EventStreamProvider blurEvent
@
@
static const EventStreamProvider changeEvent
@
@
static const EventStreamProvider clickEvent
@
@
static const EventStreamProvider contextMenuEvent
@
@
static const EventStreamProvider copyEvent
@
@
static const EventStreamProvider cutEvent
@
@
static const EventStreamProvider doubleClickEvent
@
@
static const EventStreamProvider dragEndEvent
@
@
static const EventStreamProvider dragEnterEvent
@
@
static const EventStreamProvider dragEvent
@
@
static const EventStreamProvider dragLeaveEvent
@
@
static const EventStreamProvider dragOverEvent
@
@
static const EventStreamProvider dragStartEvent
@
@
static const EventStreamProvider dropEvent
@
@
static const EventStreamProvider errorEvent
@
@
static const EventStreamProvider focusEvent
@
@
@
@
@
static const EventStreamProvider fullscreenChangeEvent
@
@
@
@
@
static const EventStreamProvider fullscreenErrorEvent
@
@
static const EventStreamProvider inputEvent
@
@
static const EventStreamProvider invalidEvent
@
@
static const EventStreamProvider keyDownEvent
@
@
static const EventStreamProvider keyPressEvent
@
@
static const EventStreamProvider keyUpEvent
@
@
static const EventStreamProvider loadEvent
@
@
static const EventStreamProvider mouseDownEvent
@
@
@
static const EventStreamProvider mouseEnterEvent
@
@
@
static const EventStreamProvider mouseLeaveEvent
@
@
static const EventStreamProvider mouseMoveEvent
@
@
static const EventStreamProvider mouseOutEvent
@
@
static const EventStreamProvider mouseOverEvent
@
@
static const EventStreamProvider mouseUpEvent
@
@
@
static const EventStreamProvider mouseWheelEvent
@
@
static const EventStreamProvider pasteEvent
@
@
static const EventStreamProvider resetEvent
@
@
static const EventStreamProvider scrollEvent
@
@
@
static const EventStreamProvider searchEvent
@
@
static const EventStreamProvider selectEvent
@
@
@
static const EventStreamProvider selectStartEvent
@
@
static const EventStreamProvider submitEvent
@
@
@
static const EventStreamProvider touchCancelEvent
@
@
@
static const EventStreamProvider touchEndEvent
@
@
@
static const EventStreamProvider touchEnterEvent
@
@
@
static const EventStreamProvider touchLeaveEvent
@
@
@
static const EventStreamProvider touchMoveEvent
@
@
@
static const EventStreamProvider touchStartEvent
@
@
static const EventStreamProvider transitionEndEvent
Fields
Map attributes
BindingDelegate bindingDelegate
final CssRect borderEdge
List children
String className
CssClassSet classes
final Rect client
final int clientHeight
final int clientLeft
final int clientTop
final int clientWidth
final DocumentFragment content
final CssRect contentEdge
String contentEditable
Map dataset
String dir
final Point documentOffset
bool draggable
String dropzone
bool hidden
String id
String innerHtml
final InputMethodContext inputMethodContext
final bool isContentEditable
final bool isTemplate
String lang
final String localName
final CssRect marginEdge
dynamic model
final String namespaceUri
final Element nextElementSibling
final Rect offset
final int offsetHeight
final int offsetLeft
final Element offsetParent
final int offsetTop
final int offsetWidth
final ElementStream onAbort
final ElementStream onBeforeCopy
final ElementStream onBeforeCut
final ElementStream onBeforePaste
final ElementStream onBlur
final ElementStream onChange
final ElementStream onClick
final ElementStream onContextMenu
final ElementStream onCopy
final ElementStream onCut
final ElementStream onDoubleClick
final ElementStream onDrag
final ElementStream onDragEnd
final ElementStream onDragEnter
final ElementStream onDragLeave
final ElementStream onDragOver
final ElementStream onDragStart
final ElementStream onDrop
final ElementStream onError
final ElementStream onFocus
final ElementStream onFullscreenChange
final ElementStream onFullscreenError
final ElementStream onInput
final ElementStream onInvalid
final ElementStream onKeyDown
final ElementStream onKeyPress
final ElementStream onKeyUp
final ElementStream onLoad
final ElementStream onMouseDown
final ElementStream onMouseEnter
final ElementStream onMouseLeave
final ElementStream onMouseMove
final ElementStream onMouseOut
final ElementStream onMouseOver
final ElementStream onMouseUp
final ElementStream onMouseWheel
final ElementStream onPaste
final ElementStream onReset
final ElementStream onScroll
final ElementStream onSearch
final ElementStream onSelect
final ElementStream onSelectStart
final ElementStream onSubmit
final ElementStream onTouchCancel
final ElementStream onTouchEnd
final ElementStream onTouchEnter
final ElementStream onTouchLeave
final ElementStream onTouchMove
final ElementStream onTouchStart
final ElementStream onTransitionEnd
final String outerHtml
final CssRect paddingEdge
final Element previousElementSibling
String pseudo
final Element ref
final String regionOverset
final int scrollHeight
int scrollLeft
int scrollTop
final int scrollWidth
final ShadowRoot shadowRoot
bool spellcheck
final CssStyleDeclaration style
int tabIndex
final String tagName
String title
bool translate
String unsafeInnerHtml
dynamic xtag
Getters and Setters
Map<String, String> get attributes
All attributes on this element.
Any modifications to the attribute map will automatically be applied to this element.
This only includes attributes which are not in a namespace (such as 'xlink:href'), additional attributes can be accessed via getNamespacedAttributes
.
set attributes=(Map<String, String> value)
@
BindingDelegate get bindingDelegate
The binding delegate which is inherited through the tree. It can be used to configure custom syntax for {{bindings}}
inside this template.
This is only supported if isTemplate
is true.
@
set bindingDelegate=(BindingDelegate value)
@
CssRect get borderEdge
Access the dimensions and position of this element's content + padding + border box.
This returns a rectangle with the dimenions actually available for content in this element, in pixels, regardless of this element's box-sizing property. Unlike getBoundingClientRect
, the dimensions of this rectangle will return the same numerical height if the element is hidden or not. This can be used to retrieve jQuery's outerHeight
(http://api.jquery.com/outerHeight/) value for an element.
_Important_ _note_: use of this method _will_ perform CSS calculations that can trigger a browser reflow. Therefore, use of this property _during_ an animation frame is discouraged. See also: Browser Reflow
(https://developers.google.com/speed/articles/reflow)
List<Element> get children
List of the direct children of this element.
This collection can be used to add and remove elements from the document.
var item = new DivElement();
item.text = 'Something';
document.body.children.add(item) // Item is now displayed on the page.
for (var element in document.body.children) {
element.style.background = 'red'; // Turns every child of body red.
}
set children=(List<Element> value)
@
@
String get className
@
@
set className=(String value)
CssClassSet get classes
The set of CSS classes applied to this element.
This set makes it easy to add, remove or toggle the classes applied to this element.
element.classes.add('selected');
element.classes.toggle('isOnline');
element.classes.remove('selected');
set classes=(Iterable<String> value)
Rect get client
Gets the position of this element relative to the client area of the page.
@
@
int get clientHeight
@
@
int get clientLeft
@
@
int get clientTop
@
@
int get clientWidth
@
DocumentFragment get content
Gets the content of this template. This is only supported if isTemplate
is true.
@
CssRect get contentEdge
Access this element's content position.
This returns a rectangle with the dimenions actually available for content in this element, in pixels, regardless of this element's box-sizing property. Unlike getBoundingClientRect
, the dimensions of this rectangle will return the same numerical height if the element is hidden or not.
_Important_ _note_: use of this method _will_ perform CSS calculations that can trigger a browser reflow. Therefore, use of this property _during_ an animation frame is discouraged. See also: Browser Reflow
(https://developers.google.com/speed/articles/reflow)
Map<String, String> get dataset
Allows access to all custom data attributes (data-*) set on this element.
The keys for the map must follow these rules:
- The name must not begin with 'xml'.
- The name cannot contain a semi-colon (';').
- The name cannot contain any capital letters.
Any keys from markup will be converted to camel-cased keys in the map.
For example, HTML specified as:
<div data-my-random-value='value'></div>
Would be accessed in Dart as:
var value = element.dataset['myRandomValue'];
See also:
Custom data attributes
(http://www.w3.org/TR/html5/global-attributes.html#custom-data-attribute)
set dataset=(Map<String, String> value)
Point get documentOffset
Provides the coordinates of the element relative to the top of the document.
This method is the Dart equivalent to jQuery's offset
(http://api.jquery.com/offset/) method.
@
@
String get id
@
@
set id=(String value)
String get innerHtml
set innerHtml=(String html)
Parses the HTML fragment and sets it as the contents of this element.
This uses the default sanitization behavior to sanitize the HTML fragment, use setInnerHtml
to override the default behavior.
InputMethodContext get inputMethodContext
bool get isContentEditable
@
bool get isTemplate
Returns true if this node is a template.
A node is a template if tagName
is TEMPLATE, or the node has the 'template' attribute and this tag supports attribute form for backwards compatibility with existing HTML parsers. The nodes that can use attribute form are table elments (THEAD, TBODY, TFOOT, TH, TR, TD, CAPTION, COLGROUP and COL), OPTION, and OPTGROUP.
@
@
String get localName
@
CssRect get marginEdge
Access the dimensions and position of this element's content + padding + border + margin box.
This returns a rectangle with the dimenions actually available for content in this element, in pixels, regardless of this element's box-sizing property. Unlike getBoundingClientRect
, the dimensions of this rectangle will return the same numerical height if the element is hidden or not. This can be used to retrieve jQuery's outerHeight
(http://api.jquery.com/outerHeight/) value for an element.
_Important_ _note_: use of this method will perform CSS calculations that can trigger a browser reflow. Therefore, use of this property _during_ an animation frame is discouraged. See also: Browser Reflow
(https://developers.google.com/speed/articles/reflow)
@
dynamic get model
The data model which is inherited through the tree. This is only supported if isTemplate
is true.
@
set model=(dynamic value)
@
@
String get namespaceUri
@
@
Element get nextElementSibling
Rect get offset
Gets the offset of this element relative to its offsetParent.
@
@
int get offsetHeight
@
@
int get offsetLeft
@
@
Element get offsetParent
@
@
int get offsetTop
@
@
int get offsetWidth
@
@
ElementStream<Event> get onAbort
@
@
ElementStream<Event> get onBeforeCopy
@
@
ElementStream<Event> get onBeforeCut
@
@
ElementStream<Event> get onBeforePaste
@
@
ElementStream<Event> get onBlur
@
@
ElementStream<Event> get onChange
@
@
ElementStream<MouseEvent> get onClick
@
@
ElementStream<MouseEvent> get onContextMenu
@
@
ElementStream<Event> get onCopy
@
@
ElementStream<Event> get onCut
@
@
ElementStream<Event> get onDoubleClick
@
@
ElementStream<MouseEvent> get onDrag
@
@
ElementStream<MouseEvent> get onDragEnd
@
@
ElementStream<MouseEvent> get onDragEnter
@
@
ElementStream<MouseEvent> get onDragLeave
@
@
ElementStream<MouseEvent> get onDragOver
@
@
ElementStream<MouseEvent> get onDragStart
@
@
ElementStream<MouseEvent> get onDrop
@
@
ElementStream<Event> get onError
@
@
ElementStream<Event> get onFocus
@
@
@
ElementStream<Event> get onFullscreenChange
@
@
@
ElementStream<Event> get onFullscreenError
@
@
ElementStream<Event> get onInput
@
@
ElementStream<Event> get onInvalid
@
@
ElementStream<KeyboardEvent> get onKeyDown
@
@
ElementStream<KeyboardEvent> get onKeyPress
@
@
ElementStream<KeyboardEvent> get onKeyUp
@
@
ElementStream<Event> get onLoad
@
@
ElementStream<MouseEvent> get onMouseDown
@
@
@
ElementStream<MouseEvent> get onMouseEnter
@
@
@
ElementStream<MouseEvent> get onMouseLeave
@
@
ElementStream<MouseEvent> get onMouseMove
@
@
ElementStream<MouseEvent> get onMouseOut
@
@
ElementStream<MouseEvent> get onMouseOver
@
@
ElementStream<MouseEvent> get onMouseUp
@
@
@
ElementStream<WheelEvent> get onMouseWheel
@
@
ElementStream<Event> get onPaste
@
@
ElementStream<Event> get onReset
@
@
ElementStream<Event> get onScroll
@
@
@
ElementStream<Event> get onSearch
@
@
ElementStream<Event> get onSelect
@
@
@
ElementStream<Event> get onSelectStart
@
@
ElementStream<Event> get onSubmit
@
@
@
ElementStream<TouchEvent> get onTouchCancel
@
@
@
ElementStream<TouchEvent> get onTouchEnd
@
@
@
ElementStream<TouchEvent> get onTouchEnter
@
@
@
ElementStream<TouchEvent> get onTouchLeave
@
@
@
ElementStream<TouchEvent> get onTouchMove
@
@
@
ElementStream<TouchEvent> get onTouchStart
@
@
@
@
@
@
ElementStream<TransitionEvent> get onTransitionEnd
String get outerHtml
@
CssRect get paddingEdge
Access the dimensions and position of this element's content + padding box.
This returns a rectangle with the dimenions actually available for content in this element, in pixels, regardless of this element's box-sizing property. Unlike getBoundingClientRect
, the dimensions of this rectangle will return the same numerical height if the element is hidden or not. This can be used to retrieve jQuery's innerHeight
(http://api.jquery.com/innerHeight/) value for an element. This is also a rectangle equalling the dimensions of clientHeight and clientWidth.
_Important_ _note_: use of this method _will_ perform CSS calculations that can trigger a browser reflow. Therefore, use of this property _during_ an animation frame is discouraged. See also: Browser Reflow
(https://developers.google.com/speed/articles/reflow)
@
@
Element get previousElementSibling
@
@
@
String get pseudo
@
@
@
set pseudo=(String value)
@
Element get ref
Gets the template this node refers to. This is only supported if isTemplate
is true.
@
@
@
@
@
String get regionOverset
@
@
int get scrollHeight
@
@
int get scrollLeft
@
@
set scrollLeft=(int value)
@
@
int get scrollTop
@
@
set scrollTop=(int value)
@
@
int get scrollWidth
@
@
@
ShadowRoot get shadowRoot
@
@
CssStyleDeclaration get style
@
@
String get tagName
@deprecated
set unsafeInnerHtml=(String html)
For use while transitioning to the safe innerHtml
or setInnerHtml
. Unsafe because it opens the app to cross-site scripting vulnerabilities.
dynamic get xtag
Experimental support for web components
wc
. This field stores a reference to the component implementation. It was inspired by Mozilla's x-tags
project. Please note: in the future it may be possible to extend Element
from your class, in which case this field will be deprecated.
If xtag has not been set, it will simply return this
Element
.
wc
: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html x-tags
: http://x-tags.org/
set xtag=(Element value)
Constructors
factory Element.a()
Creates a new <a>
element.
This is identical to calling new Element.tag('a')
.
factory Element.article()
Creates a new <article>
element.
This is identical to calling new Element.tag('article')
.
factory Element.aside()
Creates a new <aside>
element.
This is identical to calling new Element.tag('aside')
.
factory Element.audio()
Creates a new <audio>
element.
This is identical to calling new Element.tag('audio')
.
factory Element.br()
Creates a new <br>
element.
This is identical to calling new Element.tag('br')
.
factory Element.canvas()
Creates a new <canvas>
element.
This is identical to calling new Element.tag('canvas')
.
factory Element.div()
Creates a new <div>
element.
This is identical to calling new Element.tag('div')
.
factory Element.footer()
Creates a new <footer>
element.
This is identical to calling new Element.tag('footer')
.
factory Element.header()
Creates a new <header>
element.
This is identical to calling new Element.tag('header')
.
factory Element.hr()
Creates a new <hr>
element.
This is identical to calling new Element.tag('hr')
.
factory Element.html(String html, NodeValidator validator, NodeTreeSanitizer treeSanitizer)
Creates an HTML element from a valid fragment of HTML.
var element = new Element.html('<div class="foo">content</div>');
The HTML fragment should contain only one single root element, any leading or trailing text nodes will be removed.
The HTML fragment is parsed as if it occurred within the context of a <body>
tag, this means that special elements such as <caption>
which must be parsed within the scope of a <table>
element will be dropped. Use createFragment
to parse contextual HTML fragments.
Unless a validator is provided this will perform the default validation and remove all scriptable elements and attributes.
See also:
factory Element.iframe()
Creates a new <iframe>
element.
This is identical to calling new Element.tag('iframe')
.
factory Element.img()
Creates a new <img>
element.
This is identical to calling new Element.tag('img')
.
factory Element.li()
Creates a new <li>
element.
This is identical to calling new Element.tag('li')
.
factory Element.nav()
Creates a new <nav>
element.
This is identical to calling new Element.tag('nav')
.
factory Element.ol()
Creates a new <ol>
element.
This is identical to calling new Element.tag('ol')
.
factory Element.option()
Creates a new <option>
element.
This is identical to calling new Element.tag('option')
.
factory Element.p()
Creates a new <p>
element.
This is identical to calling new Element.tag('p')
.
factory Element.pre()
Creates a new <pre>
element.
This is identical to calling new Element.tag('pre')
.
factory Element.section()
Creates a new <section>
element.
This is identical to calling new Element.tag('section')
.
factory Element.select()
Creates a new <select>
element.
This is identical to calling new Element.tag('select')
.
factory Element.span()
Creates a new <span>
element.
This is identical to calling new Element.tag('span')
.
factory Element.svg()
Creates a new <svg>
element.
This is identical to calling new Element.tag('svg')
.
factory Element.table()
Creates a new <table>
element.
This is identical to calling new Element.tag('table')
.
factory Element.tag(String tag, String typeExtention)
Creates the HTML element specified by the tag name.
This is similar to Document.createElement
. tag
should be a valid HTML tag name. If tag
is an unknown tag then this will create an UnknownElement
.
var divElement = new Element.tag('div');
print(divElement is DivElement); // 'true'
var myElement = new Element.tag('unknownTag');
print(myElement is UnknownElement); // 'true'
For standard elements it is more preferable to use the type constructors:
var element = new DivElement();
See also:
factory Element.td()
Creates a new <td>
element.
This is identical to calling new Element.tag('td')
.
factory Element.textarea()
Creates a new <textarea>
element.
This is identical to calling new Element.tag('textarea')
.
factory Element.th()
Creates a new <th>
element.
This is identical to calling new Element.tag('th')
.
factory Element.tr()
Creates a new <tr>
element.
This is identical to calling new Element.tag('tr')
.
factory Element.ul()
Creates a new <ul>
element.
This is identical to calling new Element.tag('ul')
.
factory Element.video()
Creates a new <video>
element.
This is identical to calling new Element.tag('video')
.
Methods
void appendHtml(String text)
Parses the specified text as HTML and adds the resulting node after the last child of this element.
void appendText(String text)
Adds the specified text after the last child of this element.
@
@
void blur()
void click()
DocumentFragment createFragment(String html, NodeValidator validator, NodeTreeSanitizer treeSanitizer)
Create a DocumentFragment from the HTML fragment and ensure that it follows the sanitization rules specified by the validator or treeSanitizer.
If the default validation behavior is too restrictive then a new NodeValidator should be created, either extending or wrapping a default validator and overriding the validation APIs.
The treeSanitizer is used to walk the generated node tree and sanitize it. A custom treeSanitizer can also be provided to perform special validation rules but since the API is more complex to implement this is discouraged.
The returned tree is guaranteed to only contain nodes and attributes which are allowed by the provided validator.
See also:
NodeValidator
NodeTreeSanitizer
@
DocumentFragment createInstance(dynamic model, BindingDelegate delegate)
Creates an instance of the template, using the provided model and optional binding delegate.
This is only supported if isTemplate
is true.
@
@
@
@
ShadowRoot createShadowRoot()
@
void created()
Called by the DOM when this element has been instantiated.
@
@
void focus()
@
@
@deprecated
String getAttribute(String name)
@
@
@deprecated
String getAttributeNS(String namespaceURI, String localName)
@
@
Rect getBoundingClientRect()
@
@
List<Rect> getClientRects()
CssStyleDeclaration getComputedStyle(String pseudoElement)
The set of all CSS values applied to this element, including inherited and default values.
The computedStyle contains values that are inherited from other sources, such as parent elements or stylesheets. This differs from the style
property, which contains only the values specified directly on this element.
PseudoElement can be values such as ::after
, ::before
, ::marker
, ::line-marker
.
See also:
CSS Inheritance and Cascade
(http://docs.webplatform.org/wiki/tutorials/inheritance_and_cascade)Pseudo-elements
(http://docs.webplatform.org/wiki/css/selectors/pseudo-elements)
@
@
@
List<Node> getDestinationInsertionPoints()
@
@
List<Node> getElementsByClassName(String name)
Map<String, String> getNamespacedAttributes(String namespace)
Gets a map for manipulating the attributes of a particular namespace.
This is primarily useful for SVG attributes such as xref:link.
@
@
@
@
@
List<Range> getRegionFlowRanges()
Element insertAdjacentElement(String where, Element element)
void insertAdjacentHtml(String where, String html)
void insertAdjacentText(String where, String text)
static bool isTagSupported(String tag)
Checks to see if the tag name is supported by the current platform.
The tag should be a valid HTML tag name.
@
@
@
bool matches(String selectors)
@
bool matchesWithAncestors(String selectors)
Checks if this element or any of its parents match the CSS selectors.
Point offsetTo(Element parent)
Provides the offset of this element's borderEdge
relative to the specified parent
.
This is the Dart equivalent of jQuery's position
(http://api.jquery.com/position/) method. Unlike jQuery's position, however, parent
can be any parent element of this
, rather than only this
's immediate offsetParent
. If the specified element is _not_ an offset parent or transitive offset parent to this element, an ArgumentError
is thrown.
@
@
Element query(String selectors)
Finds the first descendant element of this element that matches the specified group of selectors.
selectors
should be a string using CSS selector syntax.
// Gets the first descendant with the class 'classname'
var element = element.query('.className');
// Gets the element with id 'id'
var element = element.query('#id');
// Gets the first descendant [ImageElement]
var img = element.query('img');
See also:
CSS Selectors
(http://docs.webplatform.org/wiki/css/selectors)
ElementList<dynamic> queryAll(String selectors)
Finds all descendent elements of this element that match the specified group of selectors.
selectors
should be a string using CSS selector syntax.
var items = element.query('.itemClassName');
@
@
void remove()
Removes this node from the DOM.
@
@
@
@
@
@deprecated
void requestFullScreen(int flags)
@
@
@
@
@
void requestFullscreen()
@
@
@
@
@
void requestPointerLock()
@
@
void scrollByLines(int lines)
@
@
void scrollByPages(int pages)
void scrollIntoView(ScrollAlignment alignment)
Scrolls this element into view.
Only one of of the alignment options may be specified at a time.
If no options are specified then this will attempt to scroll the minimum amount needed to bring the element into view.
Note that alignCenter is currently only supported on WebKit platforms. If alignCenter is specified but not supported then this will fall back to alignTop.
See also:
scrollIntoView
(http://docs.webplatform.org/wiki/dom/methods/scrollIntoView)scrollIntoViewIfNeeded
(http://docs.webplatform.org/wiki/dom/methods/scrollIntoViewIfNeeded)
@
@
@deprecated
void setAttribute(String name, String value)
@
@
@deprecated
void setAttributeNS(String namespaceURI, String qualifiedName, String value)
void setInnerHtml(String html, NodeValidator validator, NodeTreeSanitizer treeSanitizer)
Parses the HTML fragment and sets it as the contents of this element. This ensures that the generated content follows the sanitization rules specified by the validator or treeSanitizer.
If the default validation behavior is too restrictive then a new NodeValidator should be created, either extending or wrapping a default validator and overriding the validation APIs.
The treeSanitizer is used to walk the generated node tree and sanitize it. A custom treeSanitizer can also be provided to perform special validation rules but since the API is more complex to implement this is discouraged.
The resulting tree is guaranteed to only contain nodes and attributes which are allowed by the provided validator.
See also:
NodeValidator
NodeTreeSanitizer
String toString()
Print out a String representation of this Node.
Abstract class ElementList extends ListBase<T>
- Fields
-
borderEdge: CssRect
classes: CssClassSet
contentEdge: CssRect
marginEdge: CssRect
onAbort: ElementStream
onBeforeCopy: ElementStream
onBeforeCut: ElementStream
onBeforePaste: ElementStream
onBlur: ElementStream
onChange: ElementStream
onClick: ElementStream
onContextMenu: ElementStream
onCopy: ElementStream
onCut: ElementStream
onDoubleClick: ElementStream
onDrag: ElementStream
onDragEnd: ElementStream
onDragEnter: ElementStream
onDragLeave: ElementStream
onDragOver: ElementStream
onDragStart: ElementStream
onDrop: ElementStream
onError: ElementStream
onFocus: ElementStream
onFullscreenChange: ElementStream
onFullscreenError: ElementStream
onInput: ElementStream
onInvalid: ElementStream
onKeyDown: ElementStream
onKeyPress: ElementStream
onKeyUp: ElementStream
onLoad: ElementStream
onMouseDown: ElementStream
onMouseEnter: ElementStream
onMouseLeave: ElementStream
onMouseMove: ElementStream
onMouseOut: ElementStream
onMouseOver: ElementStream
onMouseUp: ElementStream
onMouseWheel: ElementStream
onPaste: ElementStream
onReset: ElementStream
onScroll: ElementStream
onSearch: ElementStream
onSelect: ElementStream
onSelectStart: ElementStream
onSubmit: ElementStream
onTouchCancel: ElementStream
onTouchEnd: ElementStream
onTouchEnter: ElementStream
onTouchLeave: ElementStream
onTouchMove: ElementStream
onTouchStart: ElementStream
onTransitionEnd: ElementStream
paddingEdge: CssRect
style: CssStyleDeclarationBase
- Getters and Setters
-
borderEdge: CssRect
classes: CssClassSet
classes=(Iterable<String> value)
contentEdge: CssRect
marginEdge: CssRect
onAbort: ElementStream<Event>
onBeforeCopy: ElementStream<Event>
onBeforeCut: ElementStream<Event>
onBeforePaste: ElementStream<Event>
onBlur: ElementStream<Event>
onChange: ElementStream<Event>
onClick: ElementStream<MouseEvent>
onContextMenu: ElementStream<MouseEvent>
onCopy: ElementStream<Event>
onCut: ElementStream<Event>
onDoubleClick: ElementStream<Event>
onDrag: ElementStream<MouseEvent>
onDragEnd: ElementStream<MouseEvent>
onDragEnter: ElementStream<MouseEvent>
onDragLeave: ElementStream<MouseEvent>
onDragOver: ElementStream<MouseEvent>
onDragStart: ElementStream<MouseEvent>
onDrop: ElementStream<MouseEvent>
onError: ElementStream<Event>
onFocus: ElementStream<Event>
onFullscreenChange: ElementStream<Event>
onFullscreenError: ElementStream<Event>
onInput: ElementStream<Event>
onInvalid: ElementStream<Event>
onKeyDown: ElementStream<KeyboardEvent>
onKeyPress: ElementStream<KeyboardEvent>
onKeyUp: ElementStream<KeyboardEvent>
onLoad: ElementStream<Event>
onMouseDown: ElementStream<MouseEvent>
onMouseEnter: ElementStream<MouseEvent>
onMouseLeave: ElementStream<MouseEvent>
onMouseMove: ElementStream<MouseEvent>
onMouseOut: ElementStream<MouseEvent>
onMouseOver: ElementStream<MouseEvent>
onMouseUp: ElementStream<MouseEvent>
onMouseWheel: ElementStream<WheelEvent>
onPaste: ElementStream<Event>
onReset: ElementStream<Event>
onScroll: ElementStream<Event>
onSearch: ElementStream<Event>
onSelect: ElementStream<Event>
onSelectStart: ElementStream<Event>
onSubmit: ElementStream<Event>
onTouchCancel: ElementStream<TouchEvent>
onTouchEnd: ElementStream<TouchEvent>
onTouchEnter: ElementStream<TouchEvent>
onTouchLeave: ElementStream<TouchEvent>
onTouchMove: ElementStream<TouchEvent>
onTouchStart: ElementStream<TouchEvent>
onTransitionEnd: ElementStream<TransitionEvent>
paddingEdge: CssRect
style: CssStyleDeclarationBase
- Constructors
-
ElementList()
An immutable list containing HTML elements. This list contains some additional methods when compared to regular lists for ease of CSS manipulation on a group of elements.
Fields
final CssRect borderEdge
CssClassSet classes
final CssRect contentEdge
final CssRect marginEdge
final ElementStream onAbort
final ElementStream onBeforeCopy
final ElementStream onBeforeCut
final ElementStream onBeforePaste
final ElementStream onBlur
final ElementStream onChange
final ElementStream onClick
final ElementStream onContextMenu
final ElementStream onCopy
final ElementStream onCut
final ElementStream onDoubleClick
final ElementStream onDrag
final ElementStream onDragEnd
final ElementStream onDragEnter
final ElementStream onDragLeave
final ElementStream onDragOver
final ElementStream onDragStart
final ElementStream onDrop
final ElementStream onError
final ElementStream onFocus
final ElementStream onFullscreenChange
final ElementStream onFullscreenError
final ElementStream onInput
final ElementStream onInvalid
final ElementStream onKeyDown
final ElementStream onKeyPress
final ElementStream onKeyUp
final ElementStream onLoad
final ElementStream onMouseDown
final ElementStream onMouseEnter
final ElementStream onMouseLeave
final ElementStream onMouseMove
final ElementStream onMouseOut
final ElementStream onMouseOver
final ElementStream onMouseUp
final ElementStream onMouseWheel
final ElementStream onPaste
final ElementStream onReset
final ElementStream onScroll
final ElementStream onSearch
final ElementStream onSelect
final ElementStream onSelectStart
final ElementStream onSubmit
final ElementStream onTouchCancel
final ElementStream onTouchEnd
final ElementStream onTouchEnter
final ElementStream onTouchLeave
final ElementStream onTouchMove
final ElementStream onTouchStart
final ElementStream onTransitionEnd
final CssRect paddingEdge
final CssStyleDeclarationBase style
Getters and Setters
@
CssRect get borderEdge
Access dimensions and position of the first Element's content + padding + border box in this list.
This returns a rectangle with the dimenions actually available for content in this element, in pixels, regardless of this element's box-sizing property. Unlike getBoundingClientRect
, the dimensions of this rectangle will return the same numerical height if the element is hidden or not. This can be used to retrieve jQuery's outerHeight
value for an element.
CssClassSet get classes
The union of all CSS classes applied to the elements in this list.
This set makes it easy to add, remove or toggle (add if not present, remove if present) the classes applied to a collection of elements.
htmlList.classes.add('selected');
htmlList.classes.toggle('isOnline');
htmlList.classes.remove('selected');
set classes=(Iterable<String> value)
Replace the classes with value
for every element in this list.
@
CssRect get contentEdge
Access dimensions and position of the Elements in this list.
Setting the height or width properties will set the height or width property for all elements in the list. This returns a rectangle with the dimenions actually available for content in this element, in pixels, regardless of this element's box-sizing property. Getting the height or width returns the height or width of the first Element in this list.
Unlike getBoundingClientRect
, the dimensions of this rectangle will return the same numerical height if the element is hidden or not.
@
CssRect get marginEdge
Access dimensions and position of the first Element's content + padding + border + margin box in this list.
This returns a rectangle with the dimenions actually available for content in this element, in pixels, regardless of this element's box-sizing property. Unlike getBoundingClientRect
, the dimensions of this rectangle will return the same numerical height if the element is hidden or not. This can be used to retrieve jQuery's outerHeight
value for an element.
@
@
ElementStream<Event> get onAbort
@
@
ElementStream<Event> get onBeforeCopy
@
@
ElementStream<Event> get onBeforeCut
@
@
ElementStream<Event> get onBeforePaste
@
@
ElementStream<Event> get onBlur
@
@
ElementStream<Event> get onChange
@
@
ElementStream<MouseEvent> get onClick
@
@
ElementStream<MouseEvent> get onContextMenu
@
@
ElementStream<Event> get onCopy
@
@
ElementStream<Event> get onCut
@
@
ElementStream<Event> get onDoubleClick
@
@
ElementStream<MouseEvent> get onDrag
@
@
ElementStream<MouseEvent> get onDragEnd
@
@
ElementStream<MouseEvent> get onDragEnter
@
@
ElementStream<MouseEvent> get onDragLeave
@
@
ElementStream<MouseEvent> get onDragOver
@
@
ElementStream<MouseEvent> get onDragStart
@
@
ElementStream<MouseEvent> get onDrop
@
@
ElementStream<Event> get onError
@
@
ElementStream<Event> get onFocus
@
@
@
ElementStream<Event> get onFullscreenChange
@
@
@
ElementStream<Event> get onFullscreenError
@
@
ElementStream<Event> get onInput
@
@
ElementStream<Event> get onInvalid
@
@
ElementStream<KeyboardEvent> get onKeyDown
@
@
ElementStream<KeyboardEvent> get onKeyPress
@
@
ElementStream<KeyboardEvent> get onKeyUp
@
@
ElementStream<Event> get onLoad
@
@
ElementStream<MouseEvent> get onMouseDown
@
@
@
ElementStream<MouseEvent> get onMouseEnter
@
@
@
ElementStream<MouseEvent> get onMouseLeave
@
@
ElementStream<MouseEvent> get onMouseMove
@
@
ElementStream<MouseEvent> get onMouseOut
@
@
ElementStream<MouseEvent> get onMouseOver
@
@
ElementStream<MouseEvent> get onMouseUp
@
@
@
ElementStream<WheelEvent> get onMouseWheel
@
@
ElementStream<Event> get onPaste
@
@
ElementStream<Event> get onReset
@
@
ElementStream<Event> get onScroll
@
@
@
ElementStream<Event> get onSearch
@
@
ElementStream<Event> get onSelect
@
@
@
ElementStream<Event> get onSelectStart
@
@
ElementStream<Event> get onSubmit
@
@
@
ElementStream<TouchEvent> get onTouchCancel
@
@
@
ElementStream<TouchEvent> get onTouchEnd
@
@
@
ElementStream<TouchEvent> get onTouchEnter
@
@
@
ElementStream<TouchEvent> get onTouchLeave
@
@
@
ElementStream<TouchEvent> get onTouchMove
@
@
@
ElementStream<TouchEvent> get onTouchStart
@
@
@
@
@
@
ElementStream<TransitionEvent> get onTransitionEnd
@
CssRect get paddingEdge
Access dimensions and position of the first Element's content + padding box in this list.
This returns a rectangle with the dimenions actually available for content in this element, in pixels, regardless of this element's box-sizing property. Unlike getBoundingClientRect
, the dimensions of this rectangle will return the same numerical height if the element is hidden or not. This can be used to retrieve jQuery's innerHeight
value for an element. This is also a rectangle equalling the dimensions of clientHeight and clientWidth.
CssStyleDeclarationBase get style
Access the union of all CssStyleDeclaration
s that are associated with an ElementList
.
Grouping the style objects all together provides easy editing of specific properties of a collection of elements. Setting a specific property value will set that property in all Element
s in the ElementList
. Getting a specific property value will return the value of the property of the first element in the ElementList
.
Constructors
ElementList()
Abstract class ElementStream implements Stream<T>
- Constructors
-
ElementStream()
- Methods
-
matches(String selector): Stream<T>
A specialized Stream available to Element
s to enable event delegation.
Constructors
ElementStream()
Methods
Stream<T> matches(String selector)
Return a stream that only fires when the particular event fires for elements matching the specified CSS selector.
This is the Dart equivalent to jQuery's delegate
(http://api.jquery.com/delegate/).
@
@
@
@
Abstract class EmailInputElement implements TextInputElementBase
- Static Fields
-
supported: bool
- Fields
-
autocomplete: String
autofocus: bool
list: Element
maxLength: int
multiple: bool
pattern: String
placeholder: String
readOnly: bool
required: bool
size: int
- Getters and Setters
-
list: Element
supported: bool
- Constructors
-
EmailInputElement()
An e-mail address or list of e-mail addresses.
Use supported to check if this is supported on the current platform.
Static Fields
static final bool supported
Fields
@
String autocomplete
@
bool autofocus
final Element list
@
int maxLength
@
bool multiple
@
String pattern
@
String placeholder
@
bool readOnly
@
bool required
@
int size
Getters and Setters
@
Element get list
static bool get supported
Returns true if this input type is supported on the current platform.
Constructors
factory EmailInputElement()
@
@
@
@
@
@
Class EmbedElement extends HtmlElement
- Static Fields
-
supported: bool
- Fields
-
align: String
height: String
name: String
src: String
type: String
width: String
- Getters and Setters
-
align: String
align=(String value)
height: String
height=(String value)
name: String
name=(String value)
src: String
src=(String value)
supported: bool
type: String
type=(String value)
width: String
width=(String value)
- Constructors
-
EmbedElement()
Static Fields
static final bool supported
Fields
String align
String height
String name
String src
String type
String width
Getters and Setters
@
@
@deprecated
String get align
@
@
@deprecated
set align=(String value)
@
@
String get height
@
@
set height=(String value)
@
@
String get name
@
@
set name=(String value)
@
@
String get src
@
@
set src=(String value)
static bool get supported
Checks if this type is supported on the current platform.
@
@
String get type
@
@
set type=(String value)
@
@
String get width
@
@
set width=(String value)
Constructors
@
@
factory EmbedElement()
@
@
@
Class Entry extends NativeFieldWrapperClass1
- Fields
-
filesystem: FileSystem
fullPath: String
isDirectory: bool
isFile: bool
name: String
- Getters and Setters
-
filesystem: FileSystem
fullPath: String
isDirectory: bool
isFile: bool
name: String
- Constructors
-
Entry()
- Methods
-
copyTo(DirectoryEntry parent, String name): Future<Entry>
getMetadata(): Future<Metadata>
getParent(): Future<Entry>
moveTo(DirectoryEntry parent, String name): Future<Entry>
remove(): Future<dynamic>
toUrl(): String
Fields
final FileSystem filesystem
final String fullPath
final bool isDirectory
final bool isFile
final String name
Getters and Setters
@
@
FileSystem get filesystem
@
@
String get fullPath
@
@
bool get isDirectory
@
@
bool get isFile
@
@
String get name
Constructors
Entry()
Methods
Future<Entry> copyTo(DirectoryEntry parent, String name)
Future<Metadata> getMetadata()
Future<Entry> getParent()
Future<Entry> moveTo(DirectoryEntry parent, String name)
Future<dynamic> remove()
@
@
String toUrl()
@
@
@
Class ErrorEvent extends Event
- Fields
-
colno: int
error: Object
filename: String
lineno: int
message: String
- Getters and Setters
-
colno: int
error: Object
filename: String
lineno: int
message: String
Fields
final int colno
final Object error
final String filename
final int lineno
final String message
Getters and Setters
@
@
@
int get colno
@
@
@
Object get error
@
@
String get filename
@
@
int get lineno
@
@
String get message
@
Class Event extends NativeFieldWrapperClass1
- Static Fields
-
AT_TARGET: int
BLUR: int
BUBBLING_PHASE: int
CAPTURING_PHASE: int
CHANGE: int
CLICK: int
DBLCLICK: int
DRAGDROP: int
FOCUS: int
KEYDOWN: int
KEYPRESS: int
KEYUP: int
MOUSEDOWN: int
MOUSEDRAG: int
MOUSEMOVE: int
MOUSEOUT: int
MOUSEOVER: int
MOUSEUP: int
NONE: int
SELECT: int
- Fields
-
bubbles: bool
cancelBubble: bool
cancelable: bool
clipboardData: DataTransfer
currentTarget: EventTarget
defaultPrevented: bool
eventPhase: int
path: List
target: EventTarget
timeStamp: int
type: String
- Getters and Setters
-
bubbles: bool
cancelBubble: bool
cancelBubble=(bool value)
cancelable: bool
clipboardData: DataTransfer
currentTarget: EventTarget
defaultPrevented: bool
eventPhase: int
path: List<Node>
target: EventTarget
timeStamp: int
type: String
- Constructors
-
Event(String type, bool canBubble, bool cancelable)
Event.eventType(String type, String name, bool canBubble, bool cancelable)
- Methods
-
preventDefault(): void
stopImmediatePropagation(): void
stopPropagation(): void
Static Fields
@
@
static const int AT_TARGET = 2
@
@
@deprecated
static const int BLUR = 8192
@
@
static const int BUBBLING_PHASE = 3
@
@
static const int CAPTURING_PHASE = 1
@
@
@deprecated
static const int CHANGE = 32768
@
@
@deprecated
static const int CLICK = 64
@
@
@deprecated
static const int DBLCLICK = 128
@
@
@deprecated
static const int DRAGDROP = 2048
@
@
@deprecated
static const int FOCUS = 4096
@
@
@deprecated
static const int KEYDOWN = 256
@
@
@deprecated
static const int KEYPRESS = 1024
@
@
@deprecated
static const int KEYUP = 512
@
@
@deprecated
static const int MOUSEDOWN = 1
@
@
@deprecated
static const int MOUSEDRAG = 32
@
@
@deprecated
static const int MOUSEMOVE = 16
@
@
@deprecated
static const int MOUSEOUT = 8
@
@
@deprecated
static const int MOUSEOVER = 4
@
@
@deprecated
static const int MOUSEUP = 2
@
@
@deprecated
static const int NONE = 0
@
@
@deprecated
static const int SELECT = 16384
Fields
final bool bubbles
bool cancelBubble
final bool cancelable
final DataTransfer clipboardData
final EventTarget currentTarget
final bool defaultPrevented
final int eventPhase
final List path
final EventTarget target
final int timeStamp
final String type
Getters and Setters
@
@
bool get bubbles
@
@
@deprecated
bool get cancelBubble
@
@
@deprecated
set cancelBubble=(bool value)
@
@
bool get cancelable
@
@
@
@
@
@
DataTransfer get clipboardData
@
@
EventTarget get currentTarget
@
@
bool get defaultPrevented
@
@
int get eventPhase
@
@
@
List<Node> get path
@
@
EventTarget get target
@
@
int get timeStamp
@
@
String get type
Constructors
factory Event(String type, bool canBubble, bool cancelable)
factory Event.eventType(String type, String name, bool canBubble, bool cancelable)
Creates a new Event object of the specified type.
This is analogous to document.createEvent. Normally events should be created via their constructors, if available.
var e = new Event.type('MouseEvent', 'mousedown', true, true);
Methods
@
@
void preventDefault()
@
@
void stopImmediatePropagation()
@
@
void stopPropagation()
@
@
Class EventSource extends EventTarget
- Static Fields
-
CLOSED: int
CONNECTING: int
OPEN: int
errorEvent: EventStreamProvider
messageEvent: EventStreamProvider
openEvent: EventStreamProvider
- Fields
-
onError: Stream
onMessage: Stream
onOpen: Stream
readyState: int
url: String
withCredentials: bool
- Getters and Setters
-
onError: Stream<Event>
onMessage: Stream<MessageEvent>
onOpen: Stream<Event>
readyState: int
url: String
withCredentials: bool
- Constructors
-
EventSource(String title, dynamic withCredentials)
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
close(): void
dispatchEvent(Event event): bool
Static Fields
@
@
static const int CLOSED = 2
@
@
static const int CONNECTING = 0
@
@
static const int OPEN = 1
@
@
static const EventStreamProvider errorEvent
@
@
static const EventStreamProvider messageEvent
@
@
static const EventStreamProvider openEvent
Fields
final Stream onError
final Stream onMessage
final Stream onOpen
final int readyState
final String url
final bool withCredentials
Getters and Setters
@
@
Stream<Event> get onError
@
@
Stream<MessageEvent> get onMessage
@
@
Stream<Event> get onOpen
@
@
int get readyState
@
@
String get url
@
@
bool get withCredentials
Constructors
factory EventSource(String title, dynamic withCredentials)
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
void close()
@
@
bool dispatchEvent(Event event)
Class EventStreamProvider
- Constructors
-
EventStreamProvider(String _eventType)
- Methods
-
forElement(Element e, bool useCapture): ElementStream<T>
forTarget(EventTarget e, bool useCapture): Stream<T>
getEventType(EventTarget target): String
A factory to expose DOM events as Streams.
Constructors
EventStreamProvider(String _eventType)
Methods
ElementStream<T> forElement(Element e, bool useCapture)
Gets an ElementEventStream
for this event type, on the specified element.
This will always return a broadcast stream so multiple listeners can be used simultaneously.
This may be used to capture DOM events:
Element.keyDownEvent.forElement(element, useCapture: true).listen(...);
See also:
addEventListener
(http://docs.webplatform.org/wiki/dom/methods/addEventListener)
Stream<T> forTarget(EventTarget e, bool useCapture)
Gets a Stream
for this event type, on the specified target.
This will always return a broadcast stream so multiple listeners can be used simultaneously.
This may be used to capture DOM events:
Element.keyDownEvent.forTarget(element, useCapture: true).listen(...);
Or for listening to an event which will bubble through the DOM tree:
MediaElement.pauseEvent.forTarget(document.body).listen(...);
See also:
addEventListener
(http://docs.webplatform.org/wiki/dom/methods/addEventListener)
String getEventType(EventTarget target)
Gets the type of the event which this would listen for on the specified event target.
The target is necessary because some browsers may use different event names for the same purpose and the target allows differentiating browser support.
@
Class EventTarget extends NativeFieldWrapperClass1
- Fields
-
on: Events
- Getters and Setters
-
on: Events
- Constructors
-
EventTarget()
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
dispatchEvent(Event event): bool
Fields
final Events on
Getters and Setters
Events get on
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
Constructors
EventTarget()
Methods
@
@
@deprecated
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
@deprecated
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
bool dispatchEvent(Event event)
Class Events
- Constructors
-
Events(EventTarget _ptr)
- Methods
-
[](String type): Stream<dynamic>
Base class that supports listening for and dispatching browser events.
Normally events are accessed via the Stream getter:
element.onMouseOver.listen((e) => print('Mouse over!'));
To access bubbling events which are declared on one element, but may bubble up to another element type (common for MediaElement events):
MediaElement.pauseEvent.forTarget(document.body).listen(...);
To useCapture on events:
Element.keyDownEvent.forTarget(element, useCapture: true).listen(...);
Custom events can be declared as:
class DataGenerator {
static EventStreamProvider<Event> dataEvent =
new EventStreamProvider('data');
}
Then listeners should access the event with:
DataGenerator.dataEvent.forTarget(element).listen(...);
Custom events can also be accessed as:
element.on['some_event'].listen(...);
This approach is generally discouraged as it loses the event typing and some DOM events may have multiple platform-dependent event names under the covers. By using the standard Stream getters you will get the platform specific event name automatically.
Constructors
Events(EventTarget _ptr)
Methods
Stream<dynamic> [](String type)
@
@
@
Class FieldSetElement extends HtmlElement
- Fields
-
disabled: bool
elements: HtmlCollection
form: FormElement
name: String
type: String
validationMessage: String
validity: ValidityState
willValidate: bool
- Getters and Setters
-
disabled: bool
disabled=(bool value)
elements: HtmlCollection
form: FormElement
name: String
name=(String value)
type: String
validationMessage: String
validity: ValidityState
willValidate: bool
- Constructors
-
FieldSetElement()
- Methods
-
checkValidity(): bool
setCustomValidity(String error): void
Fields
bool disabled
final HtmlCollection elements
final FormElement form
String name
final String type
final String validationMessage
final ValidityState validity
final bool willValidate
Getters and Setters
@
@
bool get disabled
@
@
set disabled=(bool value)
@
@
HtmlCollection get elements
@
@
FormElement get form
@
@
String get name
@
@
set name=(String value)
@
@
String get type
@
@
String get validationMessage
@
@
ValidityState get validity
@
@
bool get willValidate
Constructors
@
@
factory FieldSetElement()
Methods
@
@
bool checkValidity()
@
@
void setCustomValidity(String error)
@
@
Class File extends Blob
- Fields
-
lastModifiedDate: DateTime
name: String
relativePath: String
- Getters and Setters
-
lastModifiedDate: DateTime
name: String
relativePath: String
Fields
final DateTime lastModifiedDate
final String name
final String relativePath
Getters and Setters
@
@
DateTime get lastModifiedDate
@
@
String get name
@
@
@
@
@
String get relativePath
@
@
@
Class FileEntry extends Entry
- Methods
-
createWriter(): Future<FileWriter>
file(): Future<File>
Methods
Future<FileWriter> createWriter()
Future<File> file()
@
@
@
Class FileError extends DomError
- Static Fields
-
ABORT_ERR: int
ENCODING_ERR: int
INVALID_MODIFICATION_ERR: int
INVALID_STATE_ERR: int
NOT_FOUND_ERR: int
NOT_READABLE_ERR: int
NO_MODIFICATION_ALLOWED_ERR: int
PATH_EXISTS_ERR: int
QUOTA_EXCEEDED_ERR: int
SECURITY_ERR: int
SYNTAX_ERR: int
TYPE_MISMATCH_ERR: int
- Fields
-
code: int
- Getters and Setters
-
code: int
Static Fields
@
@
static const int ABORT_ERR = 3
@
@
static const int ENCODING_ERR = 5
@
@
static const int INVALID_MODIFICATION_ERR = 9
@
@
static const int INVALID_STATE_ERR = 7
@
@
static const int NOT_FOUND_ERR = 1
@
@
static const int NOT_READABLE_ERR = 4
@
@
static const int NO_MODIFICATION_ALLOWED_ERR = 6
@
@
static const int PATH_EXISTS_ERR = 12
@
@
static const int QUOTA_EXCEEDED_ERR = 10
@
@
static const int SECURITY_ERR = 2
@
@
static const int SYNTAX_ERR = 8
@
@
static const int TYPE_MISMATCH_ERR = 11
Fields
final int code
Getters and Setters
@
@
int get code
- Fields
-
first: File
last: File
length: int
single: File
- Getters and Setters
-
first: File
last: File
length: int
length=(int value)
single: File
- Constructors
-
FileList()
- Methods
-
[](int index): File
[]=(int index, File value): void
elementAt(int index): File
item(int index): File
Fields
final File first
final File last
int length
final File single
Getters and Setters
File get first
File get last
@
@
int get length
set length=(int value)
File get single
Constructors
FileList()
Methods
File [](int index)
Returns the object at the given index
in the list or throws a RangeError
if index
is out of bounds.
void []=(int index, File value)
Sets the value at the given index
in the list to value
or throws a RangeError
if index
is out of bounds.
File elementAt(int index)
Returns the index
th element.
If this
has fewer than index
elements throws a RangeError
.
Note: if this
does not have a deterministic iteration order then the function may simply return any element without any iteration if there are at least index
elements in this
.
@
@
File item(int index)
@
@
Class FileReader extends EventTarget
- Static Fields
-
DONE: int
EMPTY: int
LOADING: int
abortEvent: EventStreamProvider
errorEvent: EventStreamProvider
loadEndEvent: EventStreamProvider
loadEvent: EventStreamProvider
loadStartEvent: EventStreamProvider
progressEvent: EventStreamProvider
- Fields
-
error: FileError
onAbort: Stream
onError: Stream
onLoad: Stream
onLoadEnd: Stream
onLoadStart: Stream
onProgress: Stream
readyState: int
result: Object
- Getters and Setters
-
error: FileError
onAbort: Stream<ProgressEvent>
onError: Stream<Event>
onLoad: Stream<ProgressEvent>
onLoadEnd: Stream<ProgressEvent>
onLoadStart: Stream<ProgressEvent>
onProgress: Stream<ProgressEvent>
readyState: int
result: Object
- Constructors
-
FileReader()
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
abort(): void
dispatchEvent(Event event): bool
readAsArrayBuffer(Blob blob): void
readAsBinaryString(Blob blob): void
readAsDataUrl(Blob blob): void
readAsText(Blob blob, String encoding): void
Static Fields
@
@
static const int DONE = 2
@
@
static const int EMPTY = 0
@
@
static const int LOADING = 1
@
@
static const EventStreamProvider abortEvent
@
@
static const EventStreamProvider errorEvent
@
@
static const EventStreamProvider loadEndEvent
@
@
static const EventStreamProvider loadEvent
@
@
static const EventStreamProvider loadStartEvent
@
@
static const EventStreamProvider progressEvent
Fields
final FileError error
final Stream onAbort
final Stream onError
final Stream onLoad
final Stream onLoadEnd
final Stream onLoadStart
final Stream onProgress
final int readyState
final Object result
Getters and Setters
@
@
FileError get error
@
@
Stream<ProgressEvent> get onAbort
@
@
Stream<Event> get onError
@
@
Stream<ProgressEvent> get onLoad
@
@
Stream<ProgressEvent> get onLoadEnd
@
@
Stream<ProgressEvent> get onLoadStart
@
@
Stream<ProgressEvent> get onProgress
@
@
int get readyState
@
@
Object get result
Constructors
@
@
factory FileReader()
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
void abort()
@
@
bool dispatchEvent(Event event)
@
@
void readAsArrayBuffer(Blob blob)
@
@
@deprecated
void readAsBinaryString(Blob blob)
@
@
void readAsDataUrl(Blob blob)
void readAsText(Blob blob, String encoding)
@
@
@
Class FileStream extends NativeFieldWrapperClass1
- Fields
-
type: String
- Getters and Setters
-
type: String
- Constructors
-
FileStream()
Fields
final String type
Getters and Setters
@
@
@
String get type
Constructors
FileStream()
@
@
@
@
Class FileSystem extends NativeFieldWrapperClass1
- Static Fields
-
supported: bool
- Fields
-
name: String
root: DirectoryEntry
- Getters and Setters
-
name: String
root: DirectoryEntry
supported: bool
- Constructors
-
FileSystem()
Static Fields
static final bool supported
Fields
final String name
final DirectoryEntry root
Getters and Setters
@
@
String get name
@
@
DirectoryEntry get root
static bool get supported
Checks if this type is supported on the current platform.
Constructors
FileSystem()
Abstract class FileUploadInputElement implements InputElementBase
- Fields
-
accept: String
files: List
multiple: bool
required: bool
- Constructors
-
FileUploadInputElement()
A control for picking files from the user's computer.
Fields
@
String accept
@
List files
@
bool multiple
@
bool required
Constructors
factory FileUploadInputElement()
@
@
@
Class FileWriter extends EventTarget
- Static Fields
-
DONE: int
INIT: int
WRITING: int
abortEvent: EventStreamProvider
errorEvent: EventStreamProvider
progressEvent: EventStreamProvider
writeEndEvent: EventStreamProvider
writeEvent: EventStreamProvider
writeStartEvent: EventStreamProvider
- Fields
-
error: FileError
length: int
onAbort: Stream
onError: Stream
onProgress: Stream
onWrite: Stream
onWriteEnd: Stream
onWriteStart: Stream
position: int
readyState: int
- Getters and Setters
-
error: FileError
length: int
onAbort: Stream<ProgressEvent>
onError: Stream<Event>
onProgress: Stream<ProgressEvent>
onWrite: Stream<ProgressEvent>
onWriteEnd: Stream<ProgressEvent>
onWriteStart: Stream<ProgressEvent>
position: int
readyState: int
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
abort(): void
dispatchEvent(Event event): bool
seek(int position): void
truncate(int size): void
write(Blob data): void
Static Fields
@
@
static const int DONE = 2
@
@
static const int INIT = 0
@
@
static const int WRITING = 1
@
@
static const EventStreamProvider abortEvent
@
@
static const EventStreamProvider errorEvent
@
@
static const EventStreamProvider progressEvent
@
@
static const EventStreamProvider writeEndEvent
@
@
static const EventStreamProvider writeEvent
@
@
static const EventStreamProvider writeStartEvent
Fields
final FileError error
final int length
final Stream onAbort
final Stream onError
final Stream onProgress
final Stream onWrite
final Stream onWriteEnd
final Stream onWriteStart
final int position
final int readyState
Getters and Setters
@
@
FileError get error
@
@
int get length
@
@
Stream<ProgressEvent> get onAbort
@
@
Stream<Event> get onError
@
@
Stream<ProgressEvent> get onProgress
@
@
Stream<ProgressEvent> get onWrite
@
@
Stream<ProgressEvent> get onWriteEnd
@
@
Stream<ProgressEvent> get onWriteStart
@
@
int get position
@
@
int get readyState
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
void abort()
@
@
bool dispatchEvent(Event event)
@
@
void seek(int position)
@
@
void truncate(int size)
@
@
void write(Blob data)
Class FixedSizeListIterator implements Iterator<T>
- Fields
-
current: T
- Getters and Setters
-
current: T
- Constructors
-
FixedSizeListIterator(List<T> array)
- Methods
-
moveNext(): bool
Fields
final T current
Getters and Setters
T get current
Constructors
FixedSizeListIterator(List<T> array)
Methods
bool moveNext()
Moves to the next element. Returns true if current
contains the next element. Returns false, if no element was left.
It is safe to invoke moveNext
even when the iterator is already positioned after the last element. In this case moveNext
has no effect.
@
@
Class FocusEvent extends UIEvent
- Fields
-
relatedTarget: EventTarget
- Getters and Setters
-
relatedTarget: EventTarget
Fields
final EventTarget relatedTarget
Getters and Setters
@
@
EventTarget get relatedTarget
@
@
@
Class FontLoader extends EventTarget
- Static Fields
-
errorEvent: EventStreamProvider
loadEvent: EventStreamProvider
loadStartEvent: EventStreamProvider
loadingDoneEvent: EventStreamProvider
loadingEvent: EventStreamProvider
- Fields
-
loading: bool
onError: Stream
onLoad: Stream
onLoadStart: Stream
onLoading: Stream
onLoadingDone: Stream
- Getters and Setters
-
loading: bool
onError: Stream<Event>
onLoad: Stream<CssFontFaceLoadEvent>
onLoadStart: Stream<CssFontFaceLoadEvent>
onLoading: Stream<CssFontFaceLoadEvent>
onLoadingDone: Stream<CssFontFaceLoadEvent>
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
checkFont(String font, String text): bool
dispatchEvent(Event event): bool
loadFont(Map<dynamic, dynamic> params): void
notifyWhenFontsReady(VoidCallback callback): void
Static Fields
@
@
static const EventStreamProvider errorEvent
@
@
static const EventStreamProvider loadEvent
@
@
static const EventStreamProvider loadStartEvent
@
@
static const EventStreamProvider loadingDoneEvent
@
@
static const EventStreamProvider loadingEvent
Fields
final bool loading
final Stream onError
final Stream onLoad
final Stream onLoadStart
final Stream onLoading
final Stream onLoadingDone
Getters and Setters
@
@
bool get loading
@
@
Stream<Event> get onError
@
@
Stream<CssFontFaceLoadEvent> get onLoad
@
@
Stream<CssFontFaceLoadEvent> get onLoadStart
@
@
Stream<CssFontFaceLoadEvent> get onLoading
@
@
Stream<CssFontFaceLoadEvent> get onLoadingDone
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
bool checkFont(String font, String text)
@
@
bool dispatchEvent(Event event)
@
@
void loadFont(Map<dynamic, dynamic> params)
@
@
void notifyWhenFontsReady(VoidCallback callback)
@
@
@
@
@
@
Class FormData extends NativeFieldWrapperClass1
- Static Fields
-
supported: bool
- Getters and Setters
-
supported: bool
- Constructors
-
FormData(FormElement form)
- Methods
-
append(String name, String value): void
appendBlob(String name, Blob value, String filename): void
Static Fields
static final bool supported
Getters and Setters
static bool get supported
Checks if this type is supported on the current platform.
Constructors
@
@
factory FormData(FormElement form)
Methods
@
@
void append(String name, String value)
@
@
void appendBlob(String name, Blob value, String filename)
@
@
Class FormElement extends HtmlElement
- Static Fields
-
autocompleteErrorEvent: EventStreamProvider
autocompleteEvent: EventStreamProvider
- Fields
-
acceptCharset: String
action: String
autocomplete: String
encoding: String
enctype: String
length: int
method: String
name: String
noValidate: bool
onAutocomplete: ElementStream
onAutocompleteError: ElementStream
target: String
- Getters and Setters
-
acceptCharset: String
acceptCharset=(String value)
action: String
action=(String value)
autocomplete: String
autocomplete=(String value)
encoding: String
encoding=(String value)
enctype: String
enctype=(String value)
length: int
method: String
method=(String value)
name: String
name=(String value)
noValidate: bool
noValidate=(bool value)
onAutocomplete: ElementStream<Event>
onAutocompleteError: ElementStream<AutocompleteErrorEvent>
target: String
target=(String value)
- Constructors
-
FormElement()
- Methods
-
checkValidity(): bool
requestAutocomplete(): void
reset(): void
submit(): void
Static Fields
@
@
@
static const EventStreamProvider autocompleteErrorEvent
@
@
@
static const EventStreamProvider autocompleteEvent
Fields
String acceptCharset
String action
String autocomplete
String encoding
String enctype
final int length
String method
String name
bool noValidate
final ElementStream onAutocomplete
final ElementStream onAutocompleteError
String target
Getters and Setters
@
@
String get acceptCharset
@
@
set acceptCharset=(String value)
@
@
String get action
@
@
set action=(String value)
@
@
@
String get autocomplete
@
@
@
set autocomplete=(String value)
@
@
String get encoding
@
@
set encoding=(String value)
@
@
String get enctype
@
@
set enctype=(String value)
@
@
int get length
@
@
String get method
@
@
set method=(String value)
@
@
String get name
@
@
set name=(String value)
@
@
bool get noValidate
@
@
set noValidate=(bool value)
@
@
@
ElementStream<Event> get onAutocomplete
@
@
@
ElementStream<AutocompleteErrorEvent> get onAutocompleteError
@
@
String get target
@
@
set target=(String value)
Constructors
@
@
factory FormElement()
Methods
@
@
bool checkValidity()
@
@
@
void requestAutocomplete()
@
@
void reset()
@
@
void submit()
@
@
@
Class Gamepad extends NativeFieldWrapperClass1
- Fields
-
axes: List
buttons: List
id: String
index: int
timestamp: int
- Getters and Setters
-
axes: List<num>
buttons: List<num>
id: String
index: int
timestamp: int
- Constructors
-
Gamepad()
Fields
final List axes
final List buttons
final String id
final int index
final int timestamp
Getters and Setters
@
@
List<num> get axes
@
@
List<num> get buttons
@
@
String get id
@
@
int get index
@
@
int get timestamp
Constructors
Gamepad()
@
@
@
Class Geolocation extends NativeFieldWrapperClass1
- Constructors
-
Geolocation()
- Methods
-
getCurrentPosition(bool enableHighAccuracy, Duration timeout, Duration maximumAge): Future<Geoposition>
watchPosition(bool enableHighAccuracy, Duration timeout, Duration maximumAge): Stream<Geoposition>
Constructors
Geolocation()
Methods
@
Future<Geoposition> getCurrentPosition(bool enableHighAccuracy, Duration timeout, Duration maximumAge)
@
Stream<Geoposition> watchPosition(bool enableHighAccuracy, Duration timeout, Duration maximumAge)
@
@
@
Class Geoposition extends NativeFieldWrapperClass1
- Fields
-
coords: Coordinates
timestamp: int
- Getters and Setters
-
coords: Coordinates
timestamp: int
- Constructors
-
Geoposition()
Fields
final Coordinates coords
final int timestamp
Getters and Setters
@
@
Coordinates get coords
@
@
int get timestamp
Constructors
Geoposition()
@
@
Class HRElement extends HtmlElement
- Constructors
-
HRElement()
Constructors
@
@
factory HRElement()
@
@
@
@
@
Class HashChangeEvent extends Event
- Static Fields
-
supported: bool
- Fields
-
newUrl: String
oldUrl: String
- Getters and Setters
-
newUrl: String
oldUrl: String
supported: bool
- Constructors
-
HashChangeEvent(String type, bool canBubble, bool cancelable, String oldUrl, String newUrl)
Static Fields
static final bool supported
Fields
final String newUrl
final String oldUrl
Getters and Setters
@
@
String get newUrl
@
@
String get oldUrl
static bool get supported
Checks if this type is supported on the current platform.
Constructors
factory HashChangeEvent(String type, bool canBubble, bool cancelable, String oldUrl, String newUrl)
@
@
Class HeadElement extends HtmlElement
- Constructors
-
HeadElement()
Constructors
@
@
factory HeadElement()
@
@
Class HeadingElement extends HtmlElement
- Constructors
-
HeadingElement.h1()
HeadingElement.h2()
HeadingElement.h3()
HeadingElement.h4()
HeadingElement.h5()
HeadingElement.h6()
Constructors
@
@
factory HeadingElement.h1()
@
@
factory HeadingElement.h2()
@
@
factory HeadingElement.h3()
@
@
factory HeadingElement.h4()
@
@
factory HeadingElement.h5()
@
@
factory HeadingElement.h6()
Abstract class HiddenInputElement implements InputElementBase
- Constructors
-
HiddenInputElement()
Hidden input which is not intended to be seen or edited by the user.
Constructors
factory HiddenInputElement()
@
Class History extends NativeFieldWrapperClass1 implements HistoryBase
- Static Fields
-
supportsState: bool
- Fields
-
length: int
state: dynamic
- Getters and Setters
-
length: int
state: dynamic
supportsState: bool
- Constructors
-
History()
- Methods
-
back(): void
forward(): void
go(int distance): void
pushState(Object data, String title, String url): void
replaceState(Object data, String title, String url): void
Static Fields
static final bool supportsState
Fields
final int length
final dynamic state
Getters and Setters
@
@
int get length
@
@
dynamic get state
static bool get supportsState
Checks if the State APIs are supported on the current platform.
See also:
pushState
replaceState
state
Constructors
History()
Methods
@
@
void back()
@
@
void forward()
@
@
void go(int distance)
@
@
@
@
@
@
void pushState(Object data, String title, String url)
@
@
@
@
@
@
void replaceState(Object data, String title, String url)
Abstract class HistoryBase
- Constructors
-
HistoryBase()
- Methods
-
back(): void
forward(): void
go(int distance): void
Constructors
HistoryBase()
Methods
void back()
void forward()
void go(int distance)
@
@
@
Class HmacKeyParams extends Algorithm
- Fields
-
hash: Algorithm
length: int
- Getters and Setters
-
hash: Algorithm
length: int
Fields
final Algorithm hash
final int length
Getters and Setters
@
@
@
Algorithm get hash
@
@
@
int get length
@
@
@
Class HmacParams extends Algorithm
- Fields
-
hash: Algorithm
- Getters and Setters
-
hash: Algorithm
Fields
final Algorithm hash
Getters and Setters
@
@
@
Algorithm get hash
@
@
@deprecated
Class HtmlAllCollection extends NativeFieldWrapperClass1 with ListMixin<Node>, ImmutableListMixin<Node> implements List<Node>
- Fields
-
first: Node
last: Node
length: int
single: Node
- Getters and Setters
-
first: Node
last: Node
length: int
length=(int value)
single: Node
- Constructors
-
HtmlAllCollection()
- Methods
-
[](int index): Node
[]=(int index, Node value): void
elementAt(int index): Node
item(int index): Node
namedItem(String name): Node
tags(String name): List<Node>
Fields
final Node first
final Node last
int length
final Node single
Getters and Setters
Node get first
Node get last
@
@
int get length
set length=(int value)
Node get single
Constructors
HtmlAllCollection()
Methods
Node [](int index)
Returns the object at the given index
in the list or throws a RangeError
if index
is out of bounds.
void []=(int index, Node value)
Sets the value at the given index
in the list to value
or throws a RangeError
if index
is out of bounds.
Node elementAt(int index)
Returns the index
th element.
If this
has fewer than index
elements throws a RangeError
.
Note: if this
does not have a deterministic iteration order then the function may simply return any element without any iteration if there are at least index
elements in this
.
@
@
Node item(int index)
@
@
Node namedItem(String name)
@
@
List<Node> tags(String name)
- Fields
-
first: Node
last: Node
length: int
single: Node
- Getters and Setters
-
first: Node
last: Node
length: int
length=(int value)
single: Node
- Constructors
-
HtmlCollection()
- Methods
-
[](int index): Node
[]=(int index, Node value): void
elementAt(int index): Node
item(int index): Node
namedItem(String name): Node
Fields
final Node first
final Node last
int length
final Node single
Getters and Setters
Node get first
Node get last
@
@
int get length
set length=(int value)
Node get single
Constructors
HtmlCollection()
Methods
Node [](int index)
Returns the object at the given index
in the list or throws a RangeError
if index
is out of bounds.
void []=(int index, Node value)
Sets the value at the given index
in the list to value
or throws a RangeError
if index
is out of bounds.
Node elementAt(int index)
Returns the index
th element.
If this
has fewer than index
elements throws a RangeError
.
Note: if this
does not have a deterministic iteration order then the function may simply return any element without any iteration if there are at least index
elements in this
.
@
@
Node item(int index)
@
@
Node namedItem(String name)
@
Class HtmlDocument extends Document
- Static Fields
-
supportsCssCanvasContext: bool
visibilityChangeEvent: EventStreamProvider
- Fields
-
activeElement: Element
body: BodyElement
fullscreenElement: Element
fullscreenEnabled: bool
head: HeadElement
hidden: bool
isFullScreen: bool
lastModified: String
onVisibilityChange: Stream
pointerLockElement: Element
preferredStylesheetSet: String
referrer: String
selectedStylesheetSet: String
styleSheets: List
title: String
visibilityState: String
- Getters and Setters
-
activeElement: Element
body: BodyElement
body=(BodyElement value)
fullscreenElement: Element
fullscreenEnabled: bool
head: HeadElement
hidden: bool
isFullScreen: bool
lastModified: String
onVisibilityChange: Stream<Event>
pointerLockElement: Element
preferredStylesheetSet: String
referrer: String
selectedStylesheetSet: String
selectedStylesheetSet=(String value)
styleSheets: List<StyleSheet>
supportsCssCanvasContext: bool
title: String
title=(String value)
visibilityState: String
- Methods
-
cancelFullScreen(): void
captureEvents(): void
caretRangeFromPoint(int x, int y): Range
elementFromPoint(int x, int y): Element
exitFullscreen(): void
exitPointerLock(): void
getCssCanvasContext(String contextId, String name, int width, int height): CanvasRenderingContext
register(String tag, Type customElementClass, String nativeTagName): void
releaseEvents(): void
Static Fields
static final bool supportsCssCanvasContext
@
@
@
@
@
static const EventStreamProvider visibilityChangeEvent
Fields
final Element activeElement
BodyElement body
final Element fullscreenElement
final bool fullscreenEnabled
final HeadElement head
final bool hidden
final bool isFullScreen
final String lastModified
final Stream onVisibilityChange
final Element pointerLockElement
final String preferredStylesheetSet
final String referrer
String selectedStylesheetSet
final List styleSheets
String title
final String visibilityState
Getters and Setters
@
@
Element get activeElement
@
BodyElement get body
@
set body=(BodyElement value)
@
@
@
@
Element get fullscreenElement
@
@
@
@
bool get fullscreenEnabled
@
HeadElement get head
@
@
@
@
bool get hidden
@
@
@
@
bool get isFullScreen
@
String get lastModified
@
@
@
@
Stream<Event> get onVisibilityChange
@
@
@
@
Element get pointerLockElement
@
String get preferredStylesheetSet
@
String get referrer
@
String get selectedStylesheetSet
set selectedStylesheetSet=(String value)
@
List<StyleSheet> get styleSheets
static bool get supportsCssCanvasContext
Checks if the getCssCanvasContext API is supported on the current platform.
See also:
@
String get title
@
set title=(String value)
@
@
@
@
@
String get visibilityState
Methods
@
@
@
@
void cancelFullScreen()
@
@
@deprecated
void captureEvents()
@
Range caretRangeFromPoint(int x, int y)
@
Element elementFromPoint(int x, int y)
@
@
@
@
void exitFullscreen()
@
@
@
@
void exitPointerLock()
@
@
@
@
CanvasRenderingContext getCssCanvasContext(String contextId, String name, int width, int height)
Gets a CanvasRenderingContext which can be used as the CSS background of an element.
CSS:
background: -webkit-canvas(backgroundCanvas)
Generate the canvas:
var context = document.getCssCanvasContext('2d', 'backgroundCanvas',
100, 100);
context.fillStyle = 'red';
context.fillRect(0, 0, 100, 100);
See also:
supportsCssCanvasContext
CanvasElement.getContext
@
void register(String tag, Type customElementClass, String nativeTagName)
Register a custom subclass of Element to be instantiatable by the DOM.
This is necessary to allow the construction of any custom elements.
The class being registered must either subclass HtmlElement or SvgElement. If they subclass these directly then they can be used as:
class FooElement extends HtmlElement{
void created() {
print('FooElement created!');
}
}
main() {
document.register('x-foo', FooElement);
var myFoo = new Element.tag('x-foo');
// prints 'FooElement created!' to the console.
}
The custom element can also be instantiated via HTML using the syntax
<x-foo></x-foo>
Other elements can be subclassed as well:
class BarElement extends InputElement{
void created() {
print('BarElement created!');
}
}
main() {
document.register('x-bar', BarElement);
var myBar = new Element.tag('input', 'x-bar');
// prints 'BarElement created!' to the console.
}
This custom element can also be instantiated via HTML using the syntax
<input is="x-bar"></input>
The nativeTagName
parameter is needed by platforms without native support when subclassing a native type other than:
- HtmlElement
- SvgElement
- AnchorElement
- AudioElement
- ButtonElement
- CanvasElement
- DivElement
- ImageElement
- InputElement
- LIElement
- LabelElement
- MenuElement
- MeterElement
- OListElement
- OptionElement
- OutputElement
- ParagraphElement
- PreElement
- ProgressElement
- SelectElement
- SpanElement
- UListElement
- VideoElement
@
@
@deprecated
void releaseEvents()
@
@
Class HtmlElement extends Element
- Fields
-
contentEditable: String
dir: String
draggable: bool
dropzone: String
hidden: bool
inputMethodContext: InputMethodContext
isContentEditable: bool
lang: String
outerHtml: String
spellcheck: bool
tabIndex: int
title: String
translate: bool
- Getters and Setters
-
contentEditable: String
contentEditable=(String value)
dir: String
dir=(String value)
draggable: bool
draggable=(bool value)
dropzone: String
dropzone=(String value)
hidden: bool
hidden=(bool value)
inputMethodContext: InputMethodContext
isContentEditable: bool
lang: String
lang=(String value)
outerHtml: String
spellcheck: bool
spellcheck=(bool value)
tabIndex: int
tabIndex=(int value)
title: String
title=(String value)
translate: bool
translate=(bool value)
- Methods
-
click(): void
insertAdjacentElement(String where, Element element): Element
insertAdjacentHtml(String where, String html): void
insertAdjacentText(String where, String text): void
Fields
String contentEditable
String dir
bool draggable
String dropzone
bool hidden
final InputMethodContext inputMethodContext
final bool isContentEditable
String lang
final String outerHtml
bool spellcheck
int tabIndex
String title
bool translate
Getters and Setters
@
@
String get contentEditable
@
@
set contentEditable=(String value)
@
@
String get dir
@
@
set dir=(String value)
@
@
bool get draggable
@
@
set draggable=(bool value)
@
@
@
@
@
String get dropzone
@
@
@
@
@
set dropzone=(String value)
@
@
bool get hidden
@
@
set hidden=(bool value)
@
@
@
InputMethodContext get inputMethodContext
@
@
bool get isContentEditable
@
@
String get lang
@
@
set lang=(String value)
@
@
String get outerHtml
@
@
@
bool get spellcheck
@
@
@
set spellcheck=(bool value)
@
@
int get tabIndex
@
@
set tabIndex=(int value)
@
@
String get title
@
@
set title=(String value)
@
@
bool get translate
@
@
set translate=(bool value)
Methods
@
@
void click()
@
@
@
Element insertAdjacentElement(String where, Element element)
@
@
void insertAdjacentHtml(String where, String html)
@
@
@
void insertAdjacentText(String where, String text)
@
@
Class HtmlFormControlsCollection extends HtmlCollection
- Methods
-
namedItem(String name): Node
Methods
@
@
Node namedItem(String name)
@
@
Class HtmlHtmlElement extends HtmlElement
- Constructors
-
HtmlHtmlElement()
Constructors
@
@
factory HtmlHtmlElement()
@
@
Class HtmlOptionsCollection extends HtmlCollection
- Static Fields
-
DONE: int
HEADERS_RECEIVED: int
LOADING: int
OPENED: int
UNSENT: int
readyStateChangeEvent: EventStreamProvider
supportsCrossOrigin: bool
supportsLoadEndEvent: bool
supportsOverrideMimeType: bool
supportsProgressEvent: bool
- Fields
-
onReadyStateChange: Stream
readyState: int
response: Object
responseText: String
responseType: String
responseXml: Document
status: int
statusText: String
timeout: int
upload: HttpRequestUpload
withCredentials: bool
- Getters and Setters
-
onReadyStateChange: Stream<ProgressEvent>
readyState: int
response: Object
responseText: String
responseType: String
responseType=(String value)
responseXml: Document
status: int
statusText: String
supportsCrossOrigin: bool
supportsLoadEndEvent: bool
supportsOverrideMimeType: bool
supportsProgressEvent: bool
timeout: int
timeout=(int value)
upload: HttpRequestUpload
withCredentials: bool
withCredentials=(bool value)
- Constructors
-
HttpRequest()
- Methods
-
abort(): void
getAllResponseHeaders(): String
getResponseHeader(String header): String
getString(String url, bool withCredentials, onProgress): Future<String>
open(String method, String url, bool async, String user, String password): void
overrideMimeType(String override): void
postFormData(String url, Map<String, String> data, bool withCredentials, String responseType, Map<String, String> requestHeaders, onProgress): Future<HttpRequest>
request(String url, String method, bool withCredentials, String responseType, String mimeType, Map<String, String> requestHeaders, dynamic sendData, onProgress): Future<HttpRequest>
requestCrossOrigin(String url, String method, String sendData): Future<String>
send(dynamic data): void
setRequestHeader(String header, String value): void
A utility for retrieving data from a URL.
HttpRequest can be used to obtain data from http, ftp, and file protocols.
For example, suppose we're developing these API docs, and we wish to retrieve the HTML of the top-level page and print it out. The easiest way to do that would be:
HttpRequest.getString('http://api.dartlang.org').then((response) {
print(response);
});
Important
: With the default behavior of this class, your code making the request should be served from the same origin (domain name, port, and application layer protocol) as the URL you are trying to access with HttpRequest. However, there are ways to
get around this restriction
(http://www.dartlang.org/articles/json-web-service/#note-on-jsonp).
See also:
Dart article on using HttpRequests
(http://www.dartlang.org/articles/json-web-service/#getting-data)JS XMLHttpRequest
(https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest)Using XMLHttpRequest
(https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest)
Static Fields
@
@
static const int DONE = 4
@
@
static const int HEADERS_RECEIVED = 2
@
@
static const int LOADING = 3
@
@
static const int OPENED = 1
@
@
static const int UNSENT = 0
@
@
static const EventStreamProvider readyStateChangeEvent
static final bool supportsCrossOrigin
static final bool supportsLoadEndEvent
static final bool supportsOverrideMimeType
static final bool supportsProgressEvent
Fields
final Stream onReadyStateChange
final int readyState
final Object response
final String responseText
String responseType
final Document responseXml
final int status
final String statusText
int timeout
final HttpRequestUpload upload
bool withCredentials
Getters and Setters
@
@
Stream<ProgressEvent> get onReadyStateChange
Event listeners to be notified every time the HttpRequest
object's readyState
changes values.
@
@
int get readyState
Indicator of the current state of the request:
<table> <tr>
<td>Value</td>
<td>State</td>
<td>Meaning</td>
</tr> <tr>
<td>0</td>
<td>unsent</td>
<td><code>open()</code> has not yet been called</td>
</tr> <tr>
<td>1</td>
<td>opened</td>
<td><code>send()</code> has not yet been called</td>
</tr> <tr>
<td>2</td>
<td>headers received</td>
<td><code>sent()</code> has been called; response headers and <code>status</code> are available</td>
</tr> <tr>
<td>3</td> <td>loading</td> <td><code>responseText</code> holds some data</td>
</tr> <tr>
<td>4</td> <td>done</td> <td>request is complete</td>
</tr> </table>
@
@
@
@
@
@
Object get response
The data received as a reponse from the request.
The data could be in the form of a String
, ByteBuffer
, Document
, Blob
, or json (also a String
). null
indicates request failure.
@
@
String get responseText
The response in string form or `null on failure.
@
@
String get responseType
String
telling the server the desired response format.
Default is String
. Other options are one of 'arraybuffer', 'blob', 'document', 'json', 'text'. Some newer browsers will throw NS_ERROR_DOM_INVALID_ACCESS_ERR if responseType
is set while performing a synchronous request.
See also: MDN responseType
(https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#responseType)
@
@
set responseType=(String value)
String
telling the server the desired response format.
Default is String
. Other options are one of 'arraybuffer', 'blob', 'document', 'json', 'text'. Some newer browsers will throw NS_ERROR_DOM_INVALID_ACCESS_ERR if responseType
is set while performing a synchronous request.
See also: MDN responseType
(https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#responseType)
@
@
Document get responseXml
The request response, or null on failure.
The response is processed as text/xml
stream, unless responseType = 'document' and the request is synchronous.
@
@
int get status
The http result code from the request (200, 404, etc). See also: Http Status Codes
(http://en.wikipedia.org/wiki/List_of_HTTP_status_codes)
@
@
String get statusText
The request response string (such as \"200 OK\"). See also: Http Status Codes
(http://en.wikipedia.org/wiki/List_of_HTTP_status_codes)
static bool get supportsCrossOrigin
Checks to see if the current platform supports making cross origin requests.
Note that even if cross origin requests are supported, they still may fail if the destination server does not support CORS requests.
static bool get supportsLoadEndEvent
Checks to see if the LoadEnd event is supported on the current platform.
static bool get supportsOverrideMimeType
Checks to see if the overrideMimeType method is supported on the current platform.
static bool get supportsProgressEvent
Checks to see if the Progress event is supported on the current platform.
@
@
@
int get timeout
@
@
@
set timeout=(int value)
@
@
@
HttpRequestUpload get upload
EventTarget
that can hold listeners to track the progress of the request. The events fired will be members of HttpRequestUploadEvents
.
@
@
bool get withCredentials
True if cross-site requests should use credentials such as cookies or authorization headers; false otherwise.
This value is ignored for same-site requests.
@
@
set withCredentials=(bool value)
True if cross-site requests should use credentials such as cookies or authorization headers; false otherwise.
This value is ignored for same-site requests.
Constructors
@
@
factory HttpRequest()
General constructor for any type of request (GET, POST, etc).
This call is used in conjunction with open
:
var request = new HttpRequest();
request.open('GET', 'http://dartlang.org');
request.onLoad.listen((event) => print(
'Request complete ${event.target.reponseText}'));
request.send();
is the (more verbose) equivalent of
HttpRequest.getString('http://dartlang.org').then(
(result) => print('Request complete: $result'));
Methods
@
@
void abort()
Stop the current request.
The request can only be stopped if readyState is HEADERS_RECIEVED
or LOADING
. If this method is not in the process of being sent, the method has no effect.
@
@
@
String getAllResponseHeaders()
Retrieve all the response headers from a request.
null
if no headers have been received. For multipart requests, getAllResponseHeaders
will return the response headers for the current part of the request.
See also HTTP response headers
(http://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Responses) for a list of common response headers.
@
@
@
String getResponseHeader(String header)
Return the response header named header
, or null
if not found.
See also HTTP response headers
(http://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Responses) for a list of common response headers.
static Future<String> getString(String url, bool withCredentials, onProgress)
Creates a URL get request for the specified url
.
The server response must be a text/
mime type for this request to succeed.
This is similar to request
but specialized for HTTP GET requests which return text content.
See also:
@
@
void open(String method, String url, bool async, String user, String password)
Specify the desired url
, and method
to use in making the request.
By default the request is done asyncronously, with no user or password authentication information. If async
is false, the request will be send synchronously.
Calling open
again on a currently active request is equivalent to calling abort
.
@
@
@
@
@
void overrideMimeType(String override)
Specify a particular MIME type (such as text/xml
) desired for the response.
This value must be set before the request has been sent. See also the list of common MIME types
(http://en.wikipedia.org/wiki/Internet_media_type#List_of_common_media_types)
static Future<HttpRequest> postFormData(String url, Map<String, String> data, bool withCredentials, String responseType, Map<String, String> requestHeaders, onProgress)
Makes a server POST request with the specified data encoded as form data.
This is similar to sending a FormData object with broader browser support but limited to string values.
See also:
static Future<HttpRequest> request(String url, String method, bool withCredentials, String responseType, String mimeType, Map<String, String> requestHeaders, dynamic sendData, onProgress)
Creates a URL request for the specified url
.
By default this will do an HTTP GET request, this can be overridden with method
.
The Future is completed when the response is available.
The withCredentials
parameter specified that credentials such as a cookie (already) set in the header or authorization headers
(http://tools.ietf.org/html/rfc1945#section-10.2) should be specified for the request. Details to keep in mind when using credentials:
- Using credentials is only useful for cross-origin requests.
- The
Access-Control-Allow-Origin
header of url
cannot contain a wildcard (*). - The
Access-Control-Allow-Credentials
header of url
must be set to true. - If
Access-Control-Expose-Headers
has not been set to true, only a subset of all the response headers will be returned when calling getAllRequestHeaders
.
Note that requests for file:// URIs are only supported by Chrome extensions with appropriate permissions in their manifest. Requests to file:// URIs will also never fail- the Future will always complete successfully, even when the file cannot be found.
See also: authorization headers
(http://en.wikipedia.org/wiki/Basic_access_authentication).
@
static Future<String> requestCrossOrigin(String url, String method, String sendData)
Makes a cross-origin request to the specified URL.
This API provides a subset of request
which works on IE9. If IE9 cross-origin support is not required then request
should be used instead.
@
@
void send(dynamic data)
Send the request with any given data
.
See also:
send
(https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#send%28%29)
from MDN.
@
@
void setRequestHeader(String header, String value)
@
@
@
@
@
@
Class HttpRequestProgressEvent extends ProgressEvent
- Static Fields
-
supported: bool
- Fields
-
position: int
totalSize: int
- Getters and Setters
-
position: int
supported: bool
totalSize: int
Static Fields
static final bool supported
Fields
final int position
final int totalSize
Getters and Setters
@
@
int get position
static bool get supported
Checks if this type is supported on the current platform.
@
@
int get totalSize
@
@
Class IFrameElement extends HtmlElement
- Fields
-
contentWindow: WindowBase
height: String
name: String
sandbox: String
seamless: bool
src: String
srcdoc: String
width: String
- Getters and Setters
-
contentWindow: WindowBase
height: String
height=(String value)
name: String
name=(String value)
sandbox: String
sandbox=(String value)
seamless: bool
seamless=(bool value)
src: String
src=(String value)
srcdoc: String
srcdoc=(String value)
width: String
width=(String value)
- Constructors
-
IFrameElement()
Fields
final WindowBase contentWindow
String height
String name
String sandbox
bool seamless
String src
String srcdoc
String width
Getters and Setters
@
@
WindowBase get contentWindow
@
@
String get height
@
@
set height=(String value)
@
@
String get name
@
@
set name=(String value)
@
@
String get sandbox
@
@
set sandbox=(String value)
@
@
bool get seamless
@
@
set seamless=(bool value)
@
@
String get src
@
@
set src=(String value)
@
@
String get srcdoc
@
@
set srcdoc=(String value)
@
@
String get width
@
@
set width=(String value)
Constructors
@
@
factory IFrameElement()
@
@
@
Class ImageBitmap extends NativeFieldWrapperClass1
- Fields
-
height: int
width: int
- Getters and Setters
-
height: int
width: int
- Constructors
-
ImageBitmap()
Fields
final int height
final int width
Getters and Setters
@
@
@
int get height
@
@
@
int get width
Constructors
ImageBitmap()
Abstract class ImageButtonInputElement implements InputElementBase
- Fields
-
alt: String
formAction: String
formEnctype: String
formMethod: String
formNoValidate: bool
formTarget: String
height: int
src: String
width: int
- Constructors
-
ImageButtonInputElement()
Either an image which the user can select a coordinate to or a form submit button.
Fields
@
String alt
@
String formAction
@
String formEnctype
@
String formMethod
@
bool formNoValidate
@
String formTarget
@
int height
@
String src
@
int width
Constructors
factory ImageButtonInputElement()
@
Class ImageData extends NativeFieldWrapperClass1
- Fields
-
data: List
height: int
width: int
- Getters and Setters
-
data: List<int>
height: int
width: int
- Constructors
-
ImageData()
Fields
final List data
final int height
final int width
Getters and Setters
List<int> get data
@
@
int get height
@
@
int get width
Constructors
ImageData()
- Fields
-
alt: String
border: String
complete: bool
crossOrigin: String
height: int
isMap: bool
lowsrc: String
naturalHeight: int
naturalWidth: int
src: String
useMap: String
width: int
x: int
y: int
- Getters and Setters
-
alt: String
alt=(String value)
border: String
border=(String value)
complete: bool
crossOrigin: String
crossOrigin=(String value)
height: int
height=(int value)
isMap: bool
isMap=(bool value)
lowsrc: String
lowsrc=(String value)
naturalHeight: int
naturalWidth: int
src: String
src=(String value)
useMap: String
useMap=(String value)
width: int
width=(int value)
x: int
y: int
- Constructors
-
ImageElement(String src, int width, int height)
Fields
String alt
String border
final bool complete
String crossOrigin
int height
bool isMap
String lowsrc
final int naturalHeight
final int naturalWidth
String src
String useMap
int width
final int x
final int y
Getters and Setters
@
@
String get alt
@
@
set alt=(String value)
@
@
@deprecated
String get border
@
@
@deprecated
set border=(String value)
@
@
bool get complete
@
@
String get crossOrigin
@
@
set crossOrigin=(String value)
@
@
int get height
@
@
set height=(int value)
@
@
bool get isMap
@
@
set isMap=(bool value)
@
@
@deprecated
String get lowsrc
@
@
@deprecated
set lowsrc=(String value)
@
@
int get naturalHeight
@
@
int get naturalWidth
@
@
String get src
@
@
set src=(String value)
@
@
String get useMap
@
@
set useMap=(String value)
@
@
int get width
@
@
set width=(int value)
@
@
@deprecated
int get x
@
@
@deprecated
int get y
Constructors
@
@
factory ImageElement(String src, int width, int height)
Abstract class ImmutableListMixin implements List<E>
- Fields
-
iterator: Iterator
- Getters and Setters
-
iterator: Iterator<E>
- Constructors
-
ImmutableListMixin()
- Methods
-
add(E value): void
addAll(Iterable<E> iterable): void
fillRange(int start, int end, E fillValue): void
insert(int index, E element): void
insertAll(int index, Iterable<E> iterable): void
remove(Object object): bool
removeAt(int pos): E
removeLast(): E
removeRange(int start, int end): void
removeWhere(<E> test): void
replaceRange(int start, int end, Iterable<E> iterable): void
retainWhere(<E> test): void
setAll(int index, Iterable<E> iterable): void
setRange(int start, int end, Iterable<E> iterable, int skipCount): void
sort(<E> compare): void
Fields
final Iterator iterator
Getters and Setters
Iterator<E> get iterator
Constructors
ImmutableListMixin()
Methods
void add(E value)
Adds value
to the end of this list, extending the length by one.
Throws an UnsupportedError
if the list is fixed-length.
void addAll(Iterable<E> iterable)
Appends all objects of iterable
to the end of this list.
Extends the length of the list by the number of objects in iterable
. Throws an UnsupportedError
if this list is fixed-length.
void fillRange(int start, int end, E fillValue)
Sets the objects in the range start
inclusive to end
exclusive to the given fillValue
.
An error occurs if start
..end
is not a valid range for this
.
void insert(int index, E element)
Inserts the object at position index
in this list.
This increases the length of the list by one and shifts all objects at or after the index towards the end of the list.
An error occurs if the index
is less than 0 or greater than length. An UnsupportedError
occurs if the list is fixed-length.
void insertAll(int index, Iterable<E> iterable)
Inserts all objects of iterable
at position index
in this list.
This increases the length of the list by the length of iterable
and shifts all later objects towards the end of the list.
An error occurs if the index
is less than 0 or greater than length. An UnsupportedError
occurs if the list is fixed-length.
bool remove(Object object)
Removes the first occurence of value
from this list.
Returns true if value
was in the list. Returns false otherwise.
The method has no effect if value
was not in the list.
An UnsupportedError
occurs if the list is fixed-length.
E removeAt(int pos)
Removes the object at position index
from this list.
This method reduces the length of this
by one and moves all later objects down by one position.
Returns the removed object.
- Throws an
ArgumentError
if index
is not an int
. - Throws a
RangeError
if the index
is out of range for this list. - Throws an
UnsupportedError
, and doesn't remove the object,
if this is a fixed-length list.
E removeLast()
Pops and returns the last object in this list.
Throws an UnsupportedError
if this is a fixed-length list.
void removeRange(int start, int end)
Removes the objects in the range start
inclusive to end
exclusive.
An error occurs if start
..end
is not a valid range for this
. Throws an UnsupportedError
if this is a fixed-length list.
void removeWhere(<E> test)
Removes all objects from this list that satisfy test
.
An object o
satisfies test
if test(o)
is true.
Throws an UnsupportedError
if this is a fixed-length list.
void replaceRange(int start, int end, Iterable<E> iterable)
Removes the objects in the range start
inclusive to end
exclusive and replaces them with the contents of the iterable
.
An error occurs if start
..end
is not a valid range for this
.
Example:
var list = [1, 2, 3, 4, 5];
list.replaceRange(1, 3, [6, 7, 8, 9]);
print(list); // [1, 6, 7, 8, 9, 4, 5]
void retainWhere(<E> test)
Removes all objects from this list that fail to satisfy test
.
An object o
satisfies test
if test(o)
is true.
Throws an UnsupportedError
if this is a fixed-length list.
void setAll(int index, Iterable<E> iterable)
Overwrites objects of this
with the objects of iterable
, starting at position index
in this list.
This operation does not increase the length of this
.
An error occurs if the index
is less than 0 or greater than length. An error occurs if the iterable
is longer than length
- index
.
void setRange(int start, int end, Iterable<E> iterable, int skipCount)
Copies the objects of iterable
, skipping skipCount
objects first, into the range start
inclusive to end
exclusive of this
.
If start
equals end
and start
..end
represents a legal range, this method has no effect.
An error occurs if start
..end
is not a valid range for this
. An error occurs if the iterable
does not have enough objects after skipping skipCount
objects.
Example:
var list = [1, 2, 3, 4];
var list2 = [5, 6, 7, 8, 9];
list.setRange(1, 3, list2, 3);
print(list); // => [1, 8, 9, 4]
void sort(<E> compare)
Sorts this list according to the order specified by the compare
function.
The compare
function must act as a Comparator
.
The default List implementations use Comparable.compare
if compare
is omitted.
- Static Fields
-
speechChangeEvent: EventStreamProvider
- Fields
-
accept: String
alt: String
autocomplete: String
autofocus: bool
checked: bool
defaultChecked: bool
defaultValue: String
dirName: String
directory: bool
disabled: bool
entries: List
files: List
form: FormElement
formAction: String
formEnctype: String
formMethod: String
formNoValidate: bool
formTarget: String
grammar: bool
height: int
incremental: bool
indeterminate: bool
inputMode: String
labels: List
list: HtmlElement
max: String
maxLength: int
min: String
multiple: bool
name: String
onSpeechChange: ElementStream
pattern: String
placeholder: String
readOnly: bool
required: bool
selectionDirection: String
selectionEnd: int
selectionStart: int
size: int
speech: bool
src: String
step: String
type: String
useMap: String
validationMessage: String
validity: ValidityState
value: String
valueAsDate: DateTime
valueAsNumber: num
width: int
willValidate: bool
- Getters and Setters
-
accept: String
accept=(String value)
alt: String
alt=(String value)
autocomplete: String
autocomplete=(String value)
autofocus: bool
autofocus=(bool value)
checked: bool
checked=(bool value)
defaultChecked: bool
defaultChecked=(bool value)
defaultValue: String
defaultValue=(String value)
dirName: String
dirName=(String value)
directory: bool
directory=(bool value)
disabled: bool
disabled=(bool value)
entries: List<Entry>
files: List<File>
files=(List<File> value)
form: FormElement
formAction: String
formAction=(String value)
formEnctype: String
formEnctype=(String value)
formMethod: String
formMethod=(String value)
formNoValidate: bool
formNoValidate=(bool value)
formTarget: String
formTarget=(String value)
grammar: bool
grammar=(bool value)
height: int
height=(int value)
incremental: bool
incremental=(bool value)
indeterminate: bool
indeterminate=(bool value)
inputMode: String
inputMode=(String value)
labels: List<Node>
list: HtmlElement
max: String
max=(String value)
maxLength: int
maxLength=(int value)
min: String
min=(String value)
multiple: bool
multiple=(bool value)
name: String
name=(String value)
onSpeechChange: ElementStream<Event>
pattern: String
pattern=(String value)
placeholder: String
placeholder=(String value)
readOnly: bool
readOnly=(bool value)
required: bool
required=(bool value)
selectionDirection: String
selectionDirection=(String value)
selectionEnd: int
selectionEnd=(int value)
selectionStart: int
selectionStart=(int value)
size: int
size=(int value)
speech: bool
speech=(bool value)
src: String
src=(String value)
step: String
step=(String value)
type: String
type=(String value)
useMap: String
useMap=(String value)
validationMessage: String
validity: ValidityState
value: String
value=(String value)
valueAsDate: DateTime
valueAsDate=(DateTime value)
valueAsNumber: num
valueAsNumber=(num value)
width: int
width=(int value)
willValidate: bool
- Constructors
-
InputElement(String type)
- Methods
-
checkValidity(): bool
select(): void
setCustomValidity(String error): void
setRangeText(String replacement, int start, int end, String selectionMode): void
setSelectionRange(int start, int end, String direction): void
stepDown(int n): void
stepUp(int n): void
Static Fields
@
@
@
@
@
static const EventStreamProvider speechChangeEvent
Fields
String accept
String alt
String autocomplete
bool autofocus
bool checked
bool defaultChecked
String defaultValue
String dirName
bool directory
bool disabled
final List entries
List files
final FormElement form
String formAction
String formEnctype
String formMethod
bool formNoValidate
String formTarget
bool grammar
int height
bool incremental
bool indeterminate
String inputMode
final List labels
final HtmlElement list
String max
int maxLength
String min
bool multiple
String name
final ElementStream onSpeechChange
String pattern
String placeholder
bool readOnly
bool required
String selectionDirection
int selectionEnd
int selectionStart
int size
bool speech
String src
String step
String type
String useMap
final String validationMessage
final ValidityState validity
String value
DateTime valueAsDate
num valueAsNumber
int width
final bool willValidate
Getters and Setters
@
@
String get accept
@
@
set accept=(String value)
@
@
String get alt
@
@
set alt=(String value)
@
@
String get autocomplete
@
@
set autocomplete=(String value)
@
@
bool get autofocus
@
@
set autofocus=(bool value)
@
@
bool get checked
@
@
set checked=(bool value)
@
@
bool get defaultChecked
@
@
set defaultChecked=(bool value)
@
@
String get defaultValue
@
@
set defaultValue=(String value)
@
@
String get dirName
@
@
set dirName=(String value)
@
@
@
@
@
bool get directory
@
@
@
@
@
set directory=(bool value)
@
@
bool get disabled
@
@
set disabled=(bool value)
@
@
@
@
@
List<Entry> get entries
@
@
List<File> get files
@
@
set files=(List<File> value)
@
@
FormElement get form
@
@
String get formAction
@
@
set formAction=(String value)
@
@
String get formEnctype
@
@
set formEnctype=(String value)
@
@
String get formMethod
@
@
set formMethod=(String value)
@
@
bool get formNoValidate
@
@
set formNoValidate=(bool value)
@
@
String get formTarget
@
@
set formTarget=(String value)
@
@
@
@
@
bool get grammar
@
@
@
@
@
set grammar=(bool value)
@
@
int get height
@
@
set height=(int value)
@
@
@
bool get incremental
@
@
@
set incremental=(bool value)
@
@
bool get indeterminate
@
@
set indeterminate=(bool value)
@
@
@
String get inputMode
@
@
@
set inputMode=(String value)
@
@
List<Node> get labels
@
@
HtmlElement get list
@
@
String get max
@
@
set max=(String value)
@
@
int get maxLength
@
@
set maxLength=(int value)
@
@
String get min
@
@
set min=(String value)
@
@
bool get multiple
@
@
set multiple=(bool value)
@
@
String get name
@
@
set name=(String value)
@
@
@
ElementStream<Event> get onSpeechChange
@
@
String get pattern
@
@
set pattern=(String value)
@
@
String get placeholder
@
@
set placeholder=(String value)
@
@
bool get readOnly
@
@
set readOnly=(bool value)
@
@
bool get required
@
@
set required=(bool value)
@
@
String get selectionDirection
@
@
set selectionDirection=(String value)
@
@
int get selectionEnd
@
@
set selectionEnd=(int value)
@
@
int get selectionStart
@
@
set selectionStart=(int value)
@
@
int get size
@
@
set size=(int value)
@
@
@
@
@
bool get speech
@
@
@
@
@
set speech=(bool value)
@
@
String get src
@
@
set src=(String value)
@
@
String get step
@
@
set step=(String value)
@
@
String get type
@
@
set type=(String value)
@
@
@deprecated
String get useMap
@
@
@deprecated
set useMap=(String value)
@
@
String get validationMessage
@
@
ValidityState get validity
@
@
String get value
@
@
set value=(String value)
@
@
DateTime get valueAsDate
@
@
set valueAsDate=(DateTime value)
@
@
num get valueAsNumber
@
@
set valueAsNumber=(num value)
@
@
int get width
@
@
set width=(int value)
@
@
bool get willValidate
Constructors
factory InputElement(String type)
Methods
@
@
bool checkValidity()
@
@
void select()
@
@
void setCustomValidity(String error)
void setRangeText(String replacement, int start, int end, String selectionMode)
void setSelectionRange(int start, int end, String direction)
void stepDown(int n)
void stepUp(int n)
Abstract class InputElementBase implements Element
- Fields
-
autofocus: bool
disabled: bool
incremental: bool
indeterminate: bool
labels: List
name: String
validationMessage: String
validity: ValidityState
value: String
willValidate: bool
- Getters and Setters
-
labels: List<Node>
validationMessage: String
validity: ValidityState
willValidate: bool
- Constructors
-
InputElementBase()
- Methods
-
checkValidity(): bool
setCustomValidity(String error): void
Exposes the functionality common between all InputElement types.
Fields
@
bool autofocus
@
bool disabled
@
bool incremental
@
bool indeterminate
final List labels
@
String name
final String validationMessage
final ValidityState validity
@
String value
final bool willValidate
Getters and Setters
@
List<Node> get labels
@
String get validationMessage
@
ValidityState get validity
@
bool get willValidate
Constructors
InputElementBase()
Methods
@
bool checkValidity()
@
void setCustomValidity(String error)
@
@
@
Class InputMethodContext extends NativeFieldWrapperClass1
- Fields
-
composition: Composition
locale: String
target: HtmlElement
- Getters and Setters
-
composition: Composition
locale: String
target: HtmlElement
- Constructors
-
InputMethodContext()
- Methods
-
confirmComposition(): void
setCaretRectangle(Node anchor, int x, int y, int w, int h): void
setExclusionRectangle(Node anchor, int x, int y, int w, int h): void
Fields
final Composition composition
final String locale
final HtmlElement target
Getters and Setters
@
@
Composition get composition
@
@
String get locale
@
@
@
HtmlElement get target
Constructors
InputMethodContext()
Methods
@
@
void confirmComposition()
@
@
void setCaretRectangle(Node anchor, int x, int y, int w, int h)
@
@
void setExclusionRectangle(Node anchor, int x, int y, int w, int h)
Abstract class KeyCode
- Static Fields
-
A: int
ALT: int
APOSTROPHE: int
B: int
BACKSLASH: int
BACKSPACE: int
C: int
CAPS_LOCK: int
CLOSE_SQUARE_BRACKET: int
COMMA: int
CONTEXT_MENU: int
CTRL: int
D: int
DASH: int
DELETE: int
DOWN: int
E: int
EIGHT: int
END: int
ENTER: int
EQUALS: int
ESC: int
F: int
F1: int
F10: int
F11: int
F12: int
F2: int
F3: int
F4: int
F5: int
F6: int
F7: int
F8: int
F9: int
FF_EQUALS: int
FF_SEMICOLON: int
FIRST_MEDIA_KEY: int
FIVE: int
FOUR: int
G: int
H: int
HOME: int
I: int
INSERT: int
J: int
K: int
L: int
LAST_MEDIA_KEY: int
LEFT: int
M: int
MAC_ENTER: int
MAC_FF_META: int
META: int
N: int
NINE: int
NUMLOCK: int
NUM_CENTER: int
NUM_DELETE: int
NUM_DIVISION: int
NUM_EAST: int
NUM_EIGHT: int
NUM_FIVE: int
NUM_FOUR: int
NUM_INSERT: int
NUM_MINUS: int
NUM_MULTIPLY: int
NUM_NINE: int
NUM_NORTH: int
NUM_NORTH_EAST: int
NUM_NORTH_WEST: int
NUM_ONE: int
NUM_PERIOD: int
NUM_PLUS: int
NUM_SEVEN: int
NUM_SIX: int
NUM_SOUTH: int
NUM_SOUTH_EAST: int
NUM_SOUTH_WEST: int
NUM_THREE: int
NUM_TWO: int
NUM_WEST: int
NUM_ZERO: int
O: int
ONE: int
OPEN_SQUARE_BRACKET: int
P: int
PAGE_DOWN: int
PAGE_UP: int
PAUSE: int
PERIOD: int
PRINT_SCREEN: int
Q: int
QUESTION_MARK: int
R: int
RIGHT: int
S: int
SCROLL_LOCK: int
SEMICOLON: int
SEVEN: int
SHIFT: int
SINGLE_QUOTE: int
SIX: int
SLASH: int
SPACE: int
T: int
TAB: int
THREE: int
TILDE: int
TWO: int
U: int
UNKNOWN: int
UP: int
V: int
W: int
WIN_IME: int
WIN_KEY: int
WIN_KEY_FF_LINUX: int
WIN_KEY_LEFT: int
WIN_KEY_RIGHT: int
X: int
Y: int
Z: int
ZERO: int
- Constructors
-
KeyCode()
- Methods
-
isCharacterKey(int keyCode): bool
Defines the keycode values for keys that are returned by KeyboardEvent.keyCode.
Important note: There is substantial divergence in how different browsers handle keycodes and their variants in different locales/keyboard layouts. We provide these constants to help make code processing keys more readable.
Static Fields
static const int A = 65
static const int ALT = 18
static const int APOSTROPHE = 192
CAUTION: This constant requires localization for other locales and keyboard layouts.
static const int B = 66
static const int BACKSLASH = 220
CAUTION: This constant requires localization for other locales and keyboard layouts.
static const int BACKSPACE = 8
static const int C = 67
static const int CAPS_LOCK = 20
static const int CLOSE_SQUARE_BRACKET = 221
CAUTION: This constant requires localization for other locales and keyboard layouts.
static const int COMMA = 188
CAUTION: This constant requires localization for other locales and keyboard layouts.
static const int CONTEXT_MENU = 93
static const int CTRL = 17
static const int D = 68
static const int DASH = 189
CAUTION: This constant requires localization for other locales and keyboard layouts.
static const int DELETE = 46
static const int DOWN = 40
static const int E = 69
static const int EIGHT = 56
static const int END = 35
static const int ENTER = 13
static const int EQUALS = 187
CAUTION: This constant requires localization for other locales and keyboard layouts.
static const int ESC = 27
static const int F = 70
static const int F1 = 112
static const int F10 = 121
static const int F11 = 122
static const int F12 = 123
static const int F2 = 113
static const int F3 = 114
static const int F4 = 115
static const int F5 = 116
static const int F6 = 117
static const int F7 = 118
static const int F8 = 119
static const int F9 = 120
static const int FF_EQUALS = 61
static const int FF_SEMICOLON = 59
static const int FIRST_MEDIA_KEY = 166
static const int FIVE = 53
static const int FOUR = 52
static const int G = 71
static const int H = 72
static const int HOME = 36
static const int I = 73
static const int INSERT = 45
static const int J = 74
static const int K = 75
static const int L = 76
static const int LAST_MEDIA_KEY = 183
static const int LEFT = 37
static const int M = 77
static const int MAC_ENTER = 3
static const int MAC_FF_META = 224
static const int META = 91
static const int N = 78
static const int NINE = 57
static const int NUMLOCK = 144
static const int NUM_CENTER = 12
NUM_CENTER is also NUMLOCK for FF and Safari on Mac.
static const int NUM_DELETE = 46
static const int NUM_DIVISION = 111
static const int NUM_EAST = 39
static const int NUM_EIGHT = 104
static const int NUM_FIVE = 101
static const int NUM_FOUR = 100
static const int NUM_INSERT = 45
static const int NUM_MINUS = 109
static const int NUM_MULTIPLY = 106
static const int NUM_NINE = 105
static const int NUM_NORTH = 38
static const int NUM_NORTH_EAST = 33
static const int NUM_NORTH_WEST = 36
static const int NUM_ONE = 97
static const int NUM_PERIOD = 110
static const int NUM_PLUS = 107
static const int NUM_SEVEN = 103
static const int NUM_SIX = 102
static const int NUM_SOUTH = 40
static const int NUM_SOUTH_EAST = 34
static const int NUM_SOUTH_WEST = 35
static const int NUM_THREE = 99
static const int NUM_TWO = 98
static const int NUM_WEST = 37
static const int NUM_ZERO = 96
static const int O = 79
static const int ONE = 49
static const int OPEN_SQUARE_BRACKET = 219
CAUTION: This constant requires localization for other locales and keyboard layouts.
static const int P = 80
static const int PAGE_DOWN = 34
static const int PAGE_UP = 33
static const int PAUSE = 19
static const int PERIOD = 190
CAUTION: This constant requires localization for other locales and keyboard layouts.
static const int PRINT_SCREEN = 44
static const int Q = 81
static const int QUESTION_MARK = 63
CAUTION: The question mark is for US-keyboard layouts. It varies for other locales and keyboard layouts.
static const int R = 82
static const int RIGHT = 39
static const int S = 83
static const int SCROLL_LOCK = 145
static const int SEMICOLON = 186
CAUTION: This constant requires localization for other locales and keyboard layouts.
static const int SEVEN = 55
static const int SHIFT = 16
static const int SINGLE_QUOTE = 222
CAUTION: This constant requires localization for other locales and keyboard layouts.
static const int SIX = 54
static const int SLASH = 191
CAUTION: This constant requires localization for other locales and keyboard layouts.
static const int SPACE = 32
static const int T = 84
static const int TAB = 9
static const int THREE = 51
static const int TILDE = 192
CAUTION: This constant requires localization for other locales and keyboard layouts.
static const int TWO = 50
static const int U = 85
static const int UNKNOWN = -1
A sentinel value if the keycode could not be determined.
static const int UP = 38
static const int V = 86
static const int W = 87
static const int WIN_IME = 229
static const int WIN_KEY = 224
static const int WIN_KEY_FF_LINUX = 0
static const int WIN_KEY_LEFT = 91
static const int WIN_KEY_RIGHT = 92
static const int X = 88
static const int Y = 89
static const int Z = 90
static const int ZERO = 48
Constructors
KeyCode()
Methods
static bool isCharacterKey(int keyCode)
Returns true if the keyCode produces a (US keyboard) character. Note: This does not (yet) cover characters on non-US keyboards (Russian, Hebrew, etc.).
Class KeyEvent extends _WrappedEvent implements KeyboardEvent
- Static Fields
-
keyDownEvent: EventStreamProvider
keyPressEvent: EventStreamProvider
keyUpEvent: EventStreamProvider
- Fields
-
altGraphKey: bool
altKey: bool
charCode: int
clipboardData: DataTransfer
ctrlKey: bool
detail: int
keyCode: int
keyLocation: int
layer: Point
metaKey: bool
page: Point
shiftKey: bool
view: Window
which: int
- Getters and Setters
-
altGraphKey: bool
altKey: bool
charCode: int
clipboardData: DataTransfer
ctrlKey: bool
detail: int
keyCode: int
keyLocation: int
layer: Point
metaKey: bool
page: Point
shiftKey: bool
view: Window
which: int
- Constructors
-
KeyEvent(KeyboardEvent parent)
A custom KeyboardEvent that attempts to eliminate cross-browser inconsistencies, and also provide both keyCode and charCode information for all key events (when such information can be determined).
KeyEvent tries to provide a higher level, more polished keyboard event information on top of the "raw" KeyboardEvent
.
This class is very much a work in progress, and we'd love to get information on how we can make this class work with as many international keyboards as possible. Bugs welcome!
Static Fields
static EventStreamProvider keyDownEvent
Accessor to provide a stream of KeyEvents on the desired target.
static EventStreamProvider keyPressEvent
Accessor to provide a stream of KeyEvents on the desired target.
static EventStreamProvider keyUpEvent
Accessor to provide a stream of KeyEvents on the desired target.
Fields
final bool altGraphKey
final bool altKey
final int charCode
final DataTransfer clipboardData
final bool ctrlKey
final int detail
final int keyCode
final int keyLocation
final Point layer
final bool metaKey
final Point page
final bool shiftKey
final Window view
final int which
Getters and Setters
bool get altGraphKey
True if the altGraphKey is pressed during this event.
bool get altKey
Caculated value of whether the alt key is pressed is for this event.
int get charCode
Caculated value of what the estimated charCode is for this event.
DataTransfer get clipboardData
Accessor to the clipboardData available for this event.
bool get ctrlKey
True if the ctrl key is pressed during this event.
int get detail
int get keyCode
Caculated value of what the estimated keyCode is for this event.
int get keyLocation
Accessor to the part of the keyboard that the key was pressed from (one of KeyLocation.STANDARD, KeyLocation.RIGHT, KeyLocation.LEFT, KeyLocation.NUMPAD, KeyLocation.MOBILE, KeyLocation.JOYSTICK).
Point get layer
bool get metaKey
True if the Meta (or Mac command) key is pressed during this event.
Point get page
bool get shiftKey
True if the shift key was pressed during this event.
Window get view
int get which
Caculated value of what the estimated keyCode is for this event.
Constructors
KeyEvent(KeyboardEvent parent)
Construct a KeyEvent with parent
as the event we're emulating.
Abstract class KeyLocation
- Static Fields
-
JOYSTICK: int
LEFT: int
MOBILE: int
NUMPAD: int
RIGHT: int
STANDARD: int
- Constructors
-
KeyLocation()
Defines the standard key locations returned by KeyboardEvent.getKeyLocation.
Static Fields
static const int JOYSTICK = 5
The event key originated on a game controller or a joystick on a mobile device.
static const int LEFT = 1
The event key is in the left key location.
static const int MOBILE = 4
The event key originated on a mobile device, either on a physical keypad or a virtual keyboard.
static const int NUMPAD = 3
The event key originated on the numeric keypad or with a virtual key corresponding to the numeric keypad.
static const int RIGHT = 2
The event key is in the right key location.
static const int STANDARD = 0
The event key is not distinguished as the left or right version of the key, and did not originate from the numeric keypad (or did not originate with a virtual key corresponding to the numeric keypad).
Constructors
KeyLocation()
Abstract class KeyName
- Static Fields
-
ACCEPT: String
ADD: String
AGAIN: String
ALL_CANDIDATES: String
ALPHANUMERIC: String
ALT: String
ALT_GRAPH: String
APPS: String
ATTN: String
BACKSPACE: String
BROWSER_BACK: String
BROWSER_FAVORTIES: String
BROWSER_FORWARD: String
BROWSER_NAME: String
BROWSER_REFRESH: String
BROWSER_SEARCH: String
BROWSER_STOP: String
CAMERA: String
CANCEL: String
CAPS_LOCK: String
CLEAR: String
CODE_INPUT: String
COMPOSE: String
CONTROL: String
CONVERT: String
COPY: String
CRSEL: String
CUT: String
DEAD_ABOVE_DOT: String
DEAD_ABOVE_RING: String
DEAD_BREVE: String
DEAD_CARON: String
DEAD_CEDILLA: String
DEAD_CIRCUMFLEX: String
DEAD_DOUBLEACUTE: String
DEAD_EACUTE: String
DEAD_GRAVE: String
DEAD_IOTA: String
DEAD_MACRON: String
DEAD_OGONEK: String
DEAD_TILDE: String
DEAD_UMLAUT: String
DEAD_VOICED_SOUND: String
DECIMAL: String
DEC_SEMIVOICED_SOUND: String
DEL: String
DIVIDE: String
DOWN: String
DOWN_LEFT: String
DOWN_RIGHT: String
EJECT: String
END: String
ENTER: String
ERASE_EOF: String
ESC: String
EXECUTE: String
EXSEL: String
F1: String
F10: String
F11: String
F12: String
F13: String
F14: String
F15: String
F16: String
F17: String
F18: String
F19: String
F2: String
F20: String
F21: String
F22: String
F23: String
F24: String
F3: String
F4: String
F5: String
F6: String
F7: String
F8: String
F9: String
FINAL_MODE: String
FIND: String
FN: String
FULL_WIDTH: String
HALF_WIDTH: String
HANGUL_MODE: String
HANJA_MODE: String
HELP: String
HIRAGANA: String
HOME: String
INSERT: String
JAPANESE_HIRAGANA: String
JAPANESE_KATAKANA: String
JAPANESE_ROMAJI: String
JUNJA_MODE: String
KANA_MODE: String
KANJI_MODE: String
KATAKANA: String
LAUNCH_APPLICATION_1: String
LAUNCH_APPLICATION_2: String
LAUNCH_MAIL: String
LEFT: String
MEDIA_NEXT_TRACK: String
MEDIA_PAUSE_PLAY: String
MEDIA_PREVIOUS_TRACK: String
MEDIA_STOP: String
MENU: String
META: String
MODE_CHANGE: String
NEXT_CANDIDATE: String
NON_CONVERT: String
NUM_LOCK: String
PAGE_DOWN: String
PAGE_UP: String
PASTE: String
PAUSE: String
PLAY: String
POWER: String
PREVIOUS_CANDIDATE: String
PRINT_SCREEN: String
PROCESS: String
PROPS: String
RIGHT: String
ROMAN_CHARACTERS: String
SCROLL: String
SELECT: String
SELECT_MEDIA: String
SEPARATOR: String
SHIFT: String
SOFT_1: String
SOFT_2: String
SOFT_3: String
SOFT_4: String
SPACEBAR: String
STOP: String
SUBTRACT: String
SYMBOL_LOCK: String
TAB: String
UNDO: String
UNIDENTIFIED: String
UP: String
UP_LEFT: String
UP_RIGHT: String
VOLUME_DOWN: String
VOLUMN_MUTE: String
VOLUMN_UP: String
WIN: String
ZOOM: String
- Constructors
-
KeyName()
Defines the standard keyboard identifier names for keys that are returned by KeyEvent.getKeyboardIdentifier when the key does not have a direct unicode mapping.
Static Fields
static const String ACCEPT = 'Accept'
The Accept (Commit, OK) key
static const String ADD = 'Add'
static const String AGAIN = 'Again'
static const String ALL_CANDIDATES = 'AllCandidates'
static const String ALPHANUMERIC = 'Alphanumeric'
static const String ALT = 'Alt'
static const String ALT_GRAPH = 'AltGraph'
static const String APPS = 'Apps'
static const String ATTN = 'Attn'
static const String BACKSPACE = 'Backspace'
The Backspace (Back) key. Note: This key value shall be also used for the key labeled 'delete' MacOS keyboards when not modified by the 'Fn' key
static const String BROWSER_BACK = 'BrowserBack'
static const String BROWSER_FAVORTIES = 'BrowserFavorites'
The Browser Favorites key
static const String BROWSER_FORWARD = 'BrowserForward'
static const String BROWSER_NAME = 'BrowserHome'
static const String BROWSER_REFRESH = 'BrowserRefresh'
static const String BROWSER_SEARCH = 'BrowserSearch'
static const String BROWSER_STOP = 'BrowserStop'
static const String CAMERA = 'Camera'
static const String CANCEL = 'Cancel'
static const String CAPS_LOCK = 'CapsLock'
The Caps Lock (Capital) key
static const String CLEAR = 'Clear'
static const String CODE_INPUT = 'CodeInput'
static const String COMPOSE = 'Compose'
static const String CONTROL = 'Control'
static const String CONVERT = 'Convert'
static const String COPY = 'Copy'
static const String CRSEL = 'Crsel'
static const String CUT = 'Cut'
static const String DEAD_ABOVE_DOT = 'DeadAboveDot'
The Combining Dot Above (Derivative, Dead Above Dot) key
static const String DEAD_ABOVE_RING = 'DeadAboveRing'
The Combining Ring Above (Dead Above Ring) key
static const String DEAD_BREVE = 'DeadBreve'
The Combining Breve (Short, Dead Breve) key
static const String DEAD_CARON = 'DeadCaron'
The Combining Caron (Hacek, V Above, Dead Caron) key
static const String DEAD_CEDILLA = 'DeadCedilla'
The Combining Cedilla (Dead Cedilla) key
static const String DEAD_CIRCUMFLEX = 'DeadCircumflex'
The Combining Circumflex Accent (Hat, Dead Circumflex) key
static const String DEAD_DOUBLEACUTE = 'DeadDoubleacute'
The Combining Double Acute Accent (Dead Doubleacute) key
static const String DEAD_EACUTE = 'DeadEacute'
The Combining Acute Accent (Stress Mark, Greek Oxia, Tonos, Dead Eacute) key
static const String DEAD_GRAVE = 'DeadGrave'
The Combining Grave Accent (Greek Varia, Dead Grave) key
static const String DEAD_IOTA = 'DeadIota'
The Combining Greek Ypogegrammeni (Greek Non-Spacing Iota Below, Iota Subscript, Dead Iota) key
static const String DEAD_MACRON = 'DeadMacron'
The Combining Macron (Long, Dead Macron) key
static const String DEAD_OGONEK = 'DeadOgonek'
The Combining Ogonek (Nasal Hook, Dead Ogonek) key
static const String DEAD_TILDE = 'DeadTilde'
The Combining Tilde (Dead Tilde) key
static const String DEAD_UMLAUT = 'DeadUmlaut'
The Combining Diaeresis (Double Dot Abode, Umlaut, Greek Dialytika, Double Derivative, Dead Diaeresis) key
static const String DEAD_VOICED_SOUND = 'DeadVoicedSound'
The Combining Katakana-Hiragana Voiced Sound Mark (Dead Voiced Sound) key
static const String DECIMAL = 'Decimal'
static const String DEC_SEMIVOICED_SOUND = 'DeadSemivoicedSound'
The Combining Katakana-Hiragana Semi-Voiced Sound Mark (Dead Semivoiced Sound) key
static const String DEL = 'Del'
The Delete (Del) Key. Note: This key value shall be also used for the key labeled 'delete' MacOS keyboards when modified by the 'Fn' key
static const String DIVIDE = 'Divide'
static const String DOWN = 'Down'
static const String DOWN_LEFT = 'DownLeft'
The diagonal Down-Left Arrow key
static const String DOWN_RIGHT = 'DownRight'
The diagonal Down-Right Arrow key
static const String EJECT = 'Eject'
static const String END = 'End'
static const String ENTER = 'Enter'
The Enter key. Note: This key value must also be used for the Return (Macintosh numpad) key
static const String ERASE_EOF = 'EraseEof'
static const String ESC = 'Esc'
static const String EXECUTE = 'Execute'
static const String EXSEL = 'Exsel'
static const String F1 = 'F1'
static const String F10 = 'F10'
static const String F11 = 'F11'
static const String F12 = 'F12'
static const String F13 = 'F13'
static const String F14 = 'F14'
static const String F15 = 'F15'
static const String F16 = 'F16'
static const String F17 = 'F17'
static const String F18 = 'F18'
static const String F19 = 'F19'
static const String F2 = 'F2'
static const String F20 = 'F20'
static const String F21 = 'F21'
static const String F22 = 'F22'
static const String F23 = 'F23'
static const String F24 = 'F24'
static const String F3 = 'F3'
static const String F4 = 'F4'
static const String F5 = 'F5'
static const String F6 = 'F6'
static const String F7 = 'F7'
static const String F8 = 'F8'
static const String F9 = 'F9'
static const String FINAL_MODE = 'FinalMode'
The Final Mode (Final) key used on some asian keyboards
static const String FIND = 'Find'
static const String FN = 'Fn'
static const String FULL_WIDTH = 'FullWidth'
The Full-Width Characters key
static const String HALF_WIDTH = 'HalfWidth'
The Half-Width Characters key
static const String HANGUL_MODE = 'HangulMode'
The Hangul (Korean characters) Mode key
static const String HANJA_MODE = 'HanjaMode'
The Hanja (Korean characters) Mode key
static const String HELP = 'Help'
static const String HIRAGANA = 'Hiragana'
The Hiragana (Japanese Kana characters) key
static const String HOME = 'Home'
static const String INSERT = 'Insert'
static const String JAPANESE_HIRAGANA = 'JapaneseHiragana'
The Japanese-Hiragana key
static const String JAPANESE_KATAKANA = 'JapaneseKatakana'
The Japanese-Katakana key
static const String JAPANESE_ROMAJI = 'JapaneseRomaji'
static const String JUNJA_MODE = 'JunjaMode'
static const String KANA_MODE = 'KanaMode'
The Kana Mode (Kana Lock) key
static const String KANJI_MODE = 'KanjiMode'
The Kanji (Japanese name for ideographic characters of Chinese origin) Mode key
static const String KATAKANA = 'Katakana'
The Katakana (Japanese Kana characters) key
static const String LAUNCH_APPLICATION_1 = 'LaunchApplication1'
The Start Application One key
static const String LAUNCH_APPLICATION_2 = 'LaunchApplication2'
The Start Application Two key
static const String LAUNCH_MAIL = 'LaunchMail'
static const String LEFT = 'Left'
static const String MEDIA_NEXT_TRACK = 'MediaNextTrack'
static const String MEDIA_PAUSE_PLAY = 'MediaPlayPause'
static const String MEDIA_PREVIOUS_TRACK = 'MediaPreviousTrack'
The Media Previous Track key
static const String MEDIA_STOP = 'MediaStop'
static const String MENU = 'Menu'
static const String META = 'Meta'
The Meta key. Note: This key value shall be also used for the Apple Command key
static const String MODE_CHANGE = 'ModeChange'
static const String NEXT_CANDIDATE = 'NextCandidate'
The Next Candidate function key
static const String NON_CONVERT = 'Nonconvert'
The Nonconvert (Don't Convert) key
static const String NUM_LOCK = 'NumLock'
static const String PAGE_DOWN = 'PageDown'
static const String PAGE_UP = 'PageUp'
static const String PASTE = 'Paste'
static const String PAUSE = 'Pause'
static const String PLAY = 'Play'
static const String POWER = 'Power'
The Power key. Note: Some devices may not expose this key to the operating environment
static const String PREVIOUS_CANDIDATE = 'PreviousCandidate'
The Previous Candidate function key
static const String PRINT_SCREEN = 'PrintScreen'
The Print Screen (PrintScrn, SnapShot) key
static const String PROCESS = 'Process'
static const String PROPS = 'Props'
static const String RIGHT = 'Right'
static const String ROMAN_CHARACTERS = 'RomanCharacters'
The Roman Characters function key
static const String SCROLL = 'Scroll'
static const String SELECT = 'Select'
static const String SELECT_MEDIA = 'SelectMedia'
static const String SEPARATOR = 'Separator'
static const String SHIFT = 'Shift'
static const String SOFT_1 = 'Soft1'
static const String SOFT_2 = 'Soft2'
static const String SOFT_3 = 'Soft3'
static const String SOFT_4 = 'Soft4'
static const String SPACEBAR = 'Spacebar'
The Space (Spacebar) key:
static const String STOP = 'Stop'
static const String SUBTRACT = 'Subtract'
static const String SYMBOL_LOCK = 'SymbolLock'
static const String TAB = 'Tab'
The Horizontal Tabulation (Tab) key
static const String UNDO = 'Undo'
static const String UNIDENTIFIED = 'Unidentified'
Key value used when an implementation is unable to identify another key value, due to either hardware, platform, or software constraints
static const String UP = 'Up'
static const String UP_LEFT = 'UpLeft'
The diagonal Up-Left Arrow key
static const String UP_RIGHT = 'UpRight'
The diagonal Up-Right Arrow key
static const String VOLUME_DOWN = 'VolumeDown'
static const String VOLUMN_MUTE = 'VolumeMute'
static const String VOLUMN_UP = 'VolumeUp'
static const String WIN = 'Win'
static const String ZOOM = 'Zoom'
Constructors
KeyName()
@
Class KeyboardEvent extends UIEvent
- Static Fields
-
DOM_KEY_LOCATION_LEFT: int
DOM_KEY_LOCATION_NUMPAD: int
DOM_KEY_LOCATION_RIGHT: int
DOM_KEY_LOCATION_STANDARD: int
- Fields
-
altGraphKey: bool
altKey: bool
charCode: int
ctrlKey: bool
keyCode: int
keyLocation: int
location: int
metaKey: bool
shiftKey: bool
- Getters and Setters
-
altGraphKey: bool
altKey: bool
charCode: int
ctrlKey: bool
keyCode: int
keyLocation: int
location: int
metaKey: bool
shiftKey: bool
- Constructors
-
KeyboardEvent(String type, Window view, bool canBubble, bool cancelable, int keyLocation, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool altGraphKey)
- Methods
-
getModifierState(String keyArgument): bool
Static Fields
@
@
@
static const int DOM_KEY_LOCATION_LEFT = 1
@
@
@
static const int DOM_KEY_LOCATION_NUMPAD = 3
@
@
@
static const int DOM_KEY_LOCATION_RIGHT = 2
@
@
@
static const int DOM_KEY_LOCATION_STANDARD = 0
Fields
final bool altGraphKey
final bool altKey
final int charCode
final bool ctrlKey
final int keyCode
final int keyLocation
final int location
final bool metaKey
final bool shiftKey
Getters and Setters
@
@
@
bool get altGraphKey
@
@
bool get altKey
@
int get charCode
@
@
bool get ctrlKey
@
int get keyCode
@
@
@
int get keyLocation
@
@
@
int get location
@
@
bool get metaKey
@
@
bool get shiftKey
Constructors
factory KeyboardEvent(String type, Window view, bool canBubble, bool cancelable, int keyLocation, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool altGraphKey)
Methods
@
@
@
bool getModifierState(String keyArgument)
Class KeyboardEventStream
- Constructors
-
KeyboardEventStream()
- Methods
-
onKeyDown(EventTarget target): Stream<KeyEvent>
onKeyPress(EventTarget target): Stream<KeyEvent>
onKeyUp(EventTarget target): Stream<KeyEvent>
Records KeyboardEvents that occur on a particular element, and provides a stream of outgoing KeyEvents with cross-browser consistent keyCode and charCode values despite the fact that a multitude of browsers that have varying keyboard default behavior.
Example usage:
KeyboardEventStream.onKeyDown(document.body).listen(
keydownHandlerTest);
This class is very much a work in progress, and we'd love to get information on how we can make this class work with as many international keyboards as possible. Bugs welcome!
Constructors
KeyboardEventStream()
Methods
static Stream<KeyEvent> onKeyDown(EventTarget target)
Named constructor to produce a stream for onKeyDown events.
static Stream<KeyEvent> onKeyPress(EventTarget target)
Named constructor to produce a stream for onKeyPress events.
static Stream<KeyEvent> onKeyUp(EventTarget target)
Named constructor to produce a stream for onKeyUp events.
@
@
@
@
@
Class KeygenElement extends HtmlElement
- Static Fields
-
supported: bool
- Fields
-
autofocus: bool
challenge: String
disabled: bool
form: FormElement
keytype: String
labels: List
name: String
type: String
validationMessage: String
validity: ValidityState
willValidate: bool
- Getters and Setters
-
autofocus: bool
autofocus=(bool value)
challenge: String
challenge=(String value)
disabled: bool
disabled=(bool value)
form: FormElement
keytype: String
keytype=(String value)
labels: List<Node>
name: String
name=(String value)
supported: bool
type: String
validationMessage: String
validity: ValidityState
willValidate: bool
- Constructors
-
KeygenElement()
- Methods
-
checkValidity(): bool
setCustomValidity(String error): void
Static Fields
static final bool supported
Fields
bool autofocus
String challenge
bool disabled
final FormElement form
String keytype
final List labels
String name
final String type
final String validationMessage
final ValidityState validity
final bool willValidate
Getters and Setters
@
@
bool get autofocus
@
@
set autofocus=(bool value)
@
@
String get challenge
@
@
set challenge=(String value)
@
@
bool get disabled
@
@
set disabled=(bool value)
@
@
FormElement get form
@
@
String get keytype
@
@
set keytype=(String value)
@
@
@
List<Node> get labels
@
@
String get name
@
@
set name=(String value)
static bool get supported
Checks if this type is supported on the current platform.
@
@
String get type
@
@
String get validationMessage
@
@
ValidityState get validity
@
@
bool get willValidate
Constructors
@
@
factory KeygenElement()
Methods
@
@
bool checkValidity()
@
@
void setCustomValidity(String error)
@
@
Class LIElement extends HtmlElement
- Fields
-
type: String
value: int
- Getters and Setters
-
type: String
type=(String value)
value: int
value=(int value)
- Constructors
-
LIElement()
Fields
String type
int value
Getters and Setters
@
@
@deprecated
String get type
@
@
@deprecated
set type=(String value)
@
@
int get value
@
@
set value=(int value)
Constructors
@
@
factory LIElement()
@
@
Class LabelElement extends HtmlElement
- Fields
-
control: HtmlElement
form: FormElement
htmlFor: String
- Getters and Setters
-
control: HtmlElement
form: FormElement
htmlFor: String
htmlFor=(String value)
- Constructors
-
LabelElement()
Fields
final HtmlElement control
final FormElement form
String htmlFor
Getters and Setters
@
@
HtmlElement get control
@
@
FormElement get form
@
@
String get htmlFor
@
@
set htmlFor=(String value)
Constructors
@
@
factory LabelElement()
@
@
Class LegendElement extends HtmlElement
- Fields
-
form: FormElement
- Getters and Setters
-
form: FormElement
- Constructors
-
LegendElement()
Fields
final FormElement form
Getters and Setters
@
@
FormElement get form
Constructors
@
@
factory LegendElement()
@
@
Class LinkElement extends HtmlElement
- Fields
-
disabled: bool
href: String
hreflang: String
import: Document
media: String
rel: String
sheet: StyleSheet
sizes: DomSettableTokenList
type: String
- Getters and Setters
-
disabled: bool
disabled=(bool value)
href: String
href=(String value)
hreflang: String
hreflang=(String value)
import: Document
media: String
media=(String value)
rel: String
rel=(String value)
sheet: StyleSheet
sizes: DomSettableTokenList
sizes=(DomSettableTokenList value)
type: String
type=(String value)
- Constructors
-
LinkElement()
Fields
bool disabled
String href
String hreflang
final Document import
String media
String rel
final StyleSheet sheet
DomSettableTokenList sizes
String type
Getters and Setters
@
@
bool get disabled
@
@
set disabled=(bool value)
@
@
String get href
@
@
set href=(String value)
@
@
String get hreflang
@
@
set hreflang=(String value)
@
@
@
Document get import
@
@
String get media
@
@
set media=(String value)
@
@
String get rel
@
@
set rel=(String value)
@
@
StyleSheet get sheet
@
@
DomSettableTokenList get sizes
@
@
set sizes=(DomSettableTokenList value)
@
@
String get type
@
@
set type=(String value)
Constructors
@
@
factory LinkElement()
@
@
Abstract class LocalDateTimeInputElement implements RangeInputElementBase
- Static Fields
-
supported: bool
- Fields
-
readOnly: bool
required: bool
- Getters and Setters
-
supported: bool
- Constructors
-
LocalDateTimeInputElement()
A date and time (year, month, day, hour, minute, second, fraction of a second) with no time zone.
Use supported to check if this is supported on the current platform.
Static Fields
static final bool supported
Fields
@
bool readOnly
@
bool required
Getters and Setters
static bool get supported
Returns true if this input type is supported on the current platform.
Constructors
factory LocalDateTimeInputElement()
@
@
Class Location extends NativeFieldWrapperClass1 implements LocationBase
- Fields
-
ancestorOrigins: List
hash: String
host: String
hostname: String
href: String
origin: String
pathname: String
port: String
protocol: String
search: String
- Getters and Setters
-
ancestorOrigins: List<String>
hash: String
hash=(String value)
host: String
host=(String value)
hostname: String
hostname=(String value)
href: String
href=(String value)
origin: String
pathname: String
pathname=(String value)
port: String
port=(String value)
protocol: String
protocol=(String value)
search: String
search=(String value)
- Constructors
-
Location()
- Methods
-
assign(String url): void
reload(): void
replace(String url): void
toString(): String
Fields
final List ancestorOrigins
String hash
String host
String hostname
String href
final String origin
String pathname
String port
String protocol
String search
Getters and Setters
@
@
@
List<String> get ancestorOrigins
@
@
String get hash
@
@
set hash=(String value)
@
@
String get host
@
@
set host=(String value)
@
@
String get hostname
@
@
set hostname=(String value)
@
@
String get href
@
@
set href=(String value)
@
@
@
String get origin
@
@
String get pathname
@
@
set pathname=(String value)
@
@
String get port
@
@
set port=(String value)
@
@
String get protocol
@
@
set protocol=(String value)
@
@
String get search
@
@
set search=(String value)
Constructors
Location()
Methods
@
@
void assign(String url)
@
@
void reload()
@
@
void replace(String url)
@
@
String toString()
Returns a string representation of this object.
Abstract class LocationBase
- Fields
-
href: String
- Getters and Setters
-
href=(String val)
- Constructors
-
LocationBase()
Fields
String href
Getters and Setters
set href=(String val)
Constructors
LocationBase()
@
@
Class MapElement extends HtmlElement
- Fields
-
areas: HtmlCollection
name: String
- Getters and Setters
-
areas: HtmlCollection
name: String
name=(String value)
- Constructors
-
MapElement()
Fields
final HtmlCollection areas
String name
Getters and Setters
@
@
HtmlCollection get areas
@
@
String get name
@
@
set name=(String value)
Constructors
@
@
factory MapElement()
@
@
@
Class MediaController extends EventTarget
- Fields
-
buffered: TimeRanges
currentTime: num
defaultPlaybackRate: num
duration: double
muted: bool
paused: bool
playbackRate: num
playbackState: String
played: TimeRanges
seekable: TimeRanges
volume: num
- Getters and Setters
-
buffered: TimeRanges
currentTime: num
currentTime=(num value)
defaultPlaybackRate: num
defaultPlaybackRate=(num value)
duration: double
muted: bool
muted=(bool value)
paused: bool
playbackRate: num
playbackRate=(num value)
playbackState: String
played: TimeRanges
seekable: TimeRanges
volume: num
volume=(num value)
- Constructors
-
MediaController()
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
dispatchEvent(Event event): bool
pause(): void
play(): void
unpause(): void
Fields
final TimeRanges buffered
num currentTime
num defaultPlaybackRate
final double duration
bool muted
final bool paused
num playbackRate
final String playbackState
final TimeRanges played
final TimeRanges seekable
num volume
Getters and Setters
@
@
TimeRanges get buffered
@
@
num get currentTime
@
@
set currentTime=(num value)
@
@
num get defaultPlaybackRate
@
@
set defaultPlaybackRate=(num value)
@
@
double get duration
@
@
bool get muted
@
@
set muted=(bool value)
@
@
bool get paused
@
@
num get playbackRate
@
@
set playbackRate=(num value)
@
@
String get playbackState
@
@
TimeRanges get played
@
@
TimeRanges get seekable
@
@
num get volume
@
@
set volume=(num value)
Constructors
@
@
factory MediaController()
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
bool dispatchEvent(Event event)
@
@
void pause()
@
@
void play()
@
@
void unpause()
@
@
@
Class MediaElement extends HtmlElement
- Static Fields
-
HAVE_CURRENT_DATA: int
HAVE_ENOUGH_DATA: int
HAVE_FUTURE_DATA: int
HAVE_METADATA: int
HAVE_NOTHING: int
NETWORK_EMPTY: int
NETWORK_IDLE: int
NETWORK_LOADING: int
NETWORK_NO_SOURCE: int
canPlayEvent: EventStreamProvider
canPlayThroughEvent: EventStreamProvider
durationChangeEvent: EventStreamProvider
emptiedEvent: EventStreamProvider
endedEvent: EventStreamProvider
keyAddedEvent: EventStreamProvider
keyErrorEvent: EventStreamProvider
keyMessageEvent: EventStreamProvider
loadStartEvent: EventStreamProvider
loadedDataEvent: EventStreamProvider
loadedMetadataEvent: EventStreamProvider
needKeyEvent: EventStreamProvider
pauseEvent: EventStreamProvider
playEvent: EventStreamProvider
playingEvent: EventStreamProvider
progressEvent: EventStreamProvider
rateChangeEvent: EventStreamProvider
seekedEvent: EventStreamProvider
seekingEvent: EventStreamProvider
showEvent: EventStreamProvider
stalledEvent: EventStreamProvider
suspendEvent: EventStreamProvider
timeUpdateEvent: EventStreamProvider
volumeChangeEvent: EventStreamProvider
waitingEvent: EventStreamProvider
- Fields
-
audioDecodedByteCount: int
autoplay: bool
buffered: TimeRanges
closedCaptionsVisible: bool
controller: MediaController
controls: bool
currentSrc: String
currentTime: num
defaultMuted: bool
defaultPlaybackRate: num
duration: double
ended: bool
error: MediaError
hasClosedCaptions: bool
initialTime: double
loop: bool
mediaGroup: String
mediaKeys: MediaKeys
muted: bool
networkState: int
onCanPlay: ElementStream
onCanPlayThrough: ElementStream
onDurationChange: ElementStream
onEmptied: ElementStream
onEnded: ElementStream
onKeyAdded: ElementStream
onKeyError: ElementStream
onKeyMessage: ElementStream
onLoadStart: ElementStream
onLoadedData: ElementStream
onLoadedMetadata: ElementStream
onNeedKey: ElementStream
onPause: ElementStream
onPlay: ElementStream
onPlaying: ElementStream
onProgress: ElementStream
onRateChange: ElementStream
onSeeked: ElementStream
onSeeking: ElementStream
onShow: ElementStream
onStalled: ElementStream
onSuspend: ElementStream
onTimeUpdate: ElementStream
onVolumeChange: ElementStream
onWaiting: ElementStream
paused: bool
playbackRate: num
played: TimeRanges
preload: String
preservesPitch: bool
readyState: int
seekable: TimeRanges
seeking: bool
src: String
startTime: double
textTracks: TextTrackList
videoDecodedByteCount: int
volume: num
- Getters and Setters
-
audioDecodedByteCount: int
autoplay: bool
autoplay=(bool value)
buffered: TimeRanges
closedCaptionsVisible: bool
closedCaptionsVisible=(bool value)
controller: MediaController
controller=(MediaController value)
controls: bool
controls=(bool value)
currentSrc: String
currentTime: num
currentTime=(num value)
defaultMuted: bool
defaultMuted=(bool value)
defaultPlaybackRate: num
defaultPlaybackRate=(num value)
duration: double
ended: bool
error: MediaError
hasClosedCaptions: bool
initialTime: double
loop: bool
loop=(bool value)
mediaGroup: String
mediaGroup=(String value)
mediaKeys: MediaKeys
mediaKeys=(MediaKeys value)
muted: bool
muted=(bool value)
networkState: int
onCanPlay: ElementStream<Event>
onCanPlayThrough: ElementStream<Event>
onDurationChange: ElementStream<Event>
onEmptied: ElementStream<Event>
onEnded: ElementStream<Event>
onKeyAdded: ElementStream<MediaKeyEvent>
onKeyError: ElementStream<MediaKeyEvent>
onKeyMessage: ElementStream<MediaKeyEvent>
onLoadStart: ElementStream<Event>
onLoadedData: ElementStream<Event>
onLoadedMetadata: ElementStream<Event>
onNeedKey: ElementStream<MediaKeyEvent>
onPause: ElementStream<Event>
onPlay: ElementStream<Event>
onPlaying: ElementStream<Event>
onProgress: ElementStream<Event>
onRateChange: ElementStream<Event>
onSeeked: ElementStream<Event>
onSeeking: ElementStream<Event>
onShow: ElementStream<Event>
onStalled: ElementStream<Event>
onSuspend: ElementStream<Event>
onTimeUpdate: ElementStream<Event>
onVolumeChange: ElementStream<Event>
onWaiting: ElementStream<Event>
paused: bool
playbackRate: num
playbackRate=(num value)
played: TimeRanges
preload: String
preload=(String value)
preservesPitch: bool
preservesPitch=(bool value)
readyState: int
seekable: TimeRanges
seeking: bool
src: String
src=(String value)
startTime: double
textTracks: TextTrackList
videoDecodedByteCount: int
volume: num
volume=(num value)
- Methods
-
addKey(String keySystem, Uint8List key, Uint8List initData, String sessionId): void
addTextTrack(String kind, String label, String language): TextTrack
canPlayType(String type, String keySystem): String
cancelKeyRequest(String keySystem, String sessionId): void
generateKeyRequest(String keySystem, Uint8List initData): void
load(): void
pause(): void
play(): void
Static Fields
@
@
static const int HAVE_CURRENT_DATA = 2
@
@
static const int HAVE_ENOUGH_DATA = 4
@
@
static const int HAVE_FUTURE_DATA = 3
@
@
static const int HAVE_METADATA = 1
@
@
static const int HAVE_NOTHING = 0
@
@
static const int NETWORK_EMPTY = 0
@
@
static const int NETWORK_IDLE = 1
@
@
static const int NETWORK_LOADING = 2
@
@
static const int NETWORK_NO_SOURCE = 3
@
@
static const EventStreamProvider canPlayEvent
@
@
static const EventStreamProvider canPlayThroughEvent
@
@
static const EventStreamProvider durationChangeEvent
@
@
static const EventStreamProvider emptiedEvent
@
@
static const EventStreamProvider endedEvent
@
@
@
@
@
static const EventStreamProvider keyAddedEvent
@
@
@
@
@
static const EventStreamProvider keyErrorEvent
@
@
@
@
@
static const EventStreamProvider keyMessageEvent
@
@
static const EventStreamProvider loadStartEvent
@
@
static const EventStreamProvider loadedDataEvent
@
@
static const EventStreamProvider loadedMetadataEvent
@
@
@
@
@
static const EventStreamProvider needKeyEvent
@
@
static const EventStreamProvider pauseEvent
@
@
static const EventStreamProvider playEvent
@
@
static const EventStreamProvider playingEvent
@
@
static const EventStreamProvider progressEvent
@
@
static const EventStreamProvider rateChangeEvent
@
@
static const EventStreamProvider seekedEvent
@
@
static const EventStreamProvider seekingEvent
@
@
@
static const EventStreamProvider showEvent
@
@
static const EventStreamProvider stalledEvent
@
@
static const EventStreamProvider suspendEvent
@
@
static const EventStreamProvider timeUpdateEvent
@
@
static const EventStreamProvider volumeChangeEvent
@
@
static const EventStreamProvider waitingEvent
Fields
final int audioDecodedByteCount
bool autoplay
final TimeRanges buffered
bool closedCaptionsVisible
MediaController controller
bool controls
final String currentSrc
num currentTime
bool defaultMuted
num defaultPlaybackRate
final double duration
final bool ended
final MediaError error
final bool hasClosedCaptions
final double initialTime
bool loop
String mediaGroup
MediaKeys mediaKeys
bool muted
final int networkState
final ElementStream onCanPlay
final ElementStream onCanPlayThrough
final ElementStream onDurationChange
final ElementStream onEmptied
final ElementStream onEnded
final ElementStream onKeyAdded
final ElementStream onKeyError
final ElementStream onKeyMessage
final ElementStream onLoadStart
final ElementStream onLoadedData
final ElementStream onLoadedMetadata
final ElementStream onNeedKey
final ElementStream onPause
final ElementStream onPlay
final ElementStream onPlaying
final ElementStream onProgress
final ElementStream onRateChange
final ElementStream onSeeked
final ElementStream onSeeking
final ElementStream onShow
final ElementStream onStalled
final ElementStream onSuspend
final ElementStream onTimeUpdate
final ElementStream onVolumeChange
final ElementStream onWaiting
final bool paused
num playbackRate
final TimeRanges played
String preload
bool preservesPitch
final int readyState
final TimeRanges seekable
final bool seeking
String src
final double startTime
final TextTrackList textTracks
final int videoDecodedByteCount
num volume
Getters and Setters
@
@
@
@
@
@
int get audioDecodedByteCount
@
@
bool get autoplay
@
@
set autoplay=(bool value)
@
@
TimeRanges get buffered
@
@
@
@
@
@
bool get closedCaptionsVisible
@
@
@
@
@
@
set closedCaptionsVisible=(bool value)
@
@
MediaController get controller
@
@
set controller=(MediaController value)
@
@
bool get controls
@
@
set controls=(bool value)
@
@
String get currentSrc
@
@
num get currentTime
@
@
set currentTime=(num value)
@
@
bool get defaultMuted
@
@
set defaultMuted=(bool value)
@
@
num get defaultPlaybackRate
@
@
set defaultPlaybackRate=(num value)
@
@
double get duration
@
@
bool get ended
@
@
MediaError get error
@
@
@
@
@
@
bool get hasClosedCaptions
@
@
@
double get initialTime
@
@
bool get loop
@
@
set loop=(bool value)
@
@
String get mediaGroup
@
@
set mediaGroup=(String value)
@
@
@
MediaKeys get mediaKeys
@
@
@
set mediaKeys=(MediaKeys value)
@
@
bool get muted
@
@
set muted=(bool value)
@
@
int get networkState
@
@
ElementStream<Event> get onCanPlay
@
@
ElementStream<Event> get onCanPlayThrough
@
@
ElementStream<Event> get onDurationChange
@
@
ElementStream<Event> get onEmptied
@
@
ElementStream<Event> get onEnded
@
@
@
ElementStream<MediaKeyEvent> get onKeyAdded
@
@
@
ElementStream<MediaKeyEvent> get onKeyError
@
@
@
ElementStream<MediaKeyEvent> get onKeyMessage
@
@
ElementStream<Event> get onLoadStart
@
@
ElementStream<Event> get onLoadedData
@
@
ElementStream<Event> get onLoadedMetadata
@
@
@
ElementStream<MediaKeyEvent> get onNeedKey
@
@
ElementStream<Event> get onPause
@
@
ElementStream<Event> get onPlay
@
@
ElementStream<Event> get onPlaying
@
@
ElementStream<Event> get onProgress
@
@
ElementStream<Event> get onRateChange
@
@
ElementStream<Event> get onSeeked
@
@
ElementStream<Event> get onSeeking
@
@
@
ElementStream<Event> get onShow
@
@
ElementStream<Event> get onStalled
@
@
ElementStream<Event> get onSuspend
@
@
ElementStream<Event> get onTimeUpdate
@
@
ElementStream<Event> get onVolumeChange
@
@
ElementStream<Event> get onWaiting
@
@
bool get paused
@
@
num get playbackRate
@
@
set playbackRate=(num value)
@
@
TimeRanges get played
@
@
String get preload
@
@
set preload=(String value)
@
@
@
@
@
@
bool get preservesPitch
@
@
@
@
@
@
set preservesPitch=(bool value)
@
@
int get readyState
@
@
TimeRanges get seekable
@
@
bool get seeking
@
@
String get src
@
@
set src=(String value)
@
@
@
double get startTime
@
@
@
TextTrackList get textTracks
@
@
@
@
@
@
int get videoDecodedByteCount
@
@
num get volume
@
@
set volume=(num value)
Methods
void addKey(String keySystem, Uint8List key, Uint8List initData, String sessionId)
TextTrack addTextTrack(String kind, String label, String language)
@
@
@
String canPlayType(String type, String keySystem)
@
@
@
@
@
void cancelKeyRequest(String keySystem, String sessionId)
void generateKeyRequest(String keySystem, Uint8List initData)
@
@
void load()
@
@
void pause()
@
@
void play()
@
@
@
Class MediaError extends NativeFieldWrapperClass1
- Static Fields
-
MEDIA_ERR_ABORTED: int
MEDIA_ERR_DECODE: int
MEDIA_ERR_ENCRYPTED: int
MEDIA_ERR_NETWORK: int
MEDIA_ERR_SRC_NOT_SUPPORTED: int
- Fields
-
code: int
- Getters and Setters
-
code: int
- Constructors
-
MediaError()
Static Fields
@
@
static const int MEDIA_ERR_ABORTED = 1
@
@
static const int MEDIA_ERR_DECODE = 3
@
@
@
static const int MEDIA_ERR_ENCRYPTED = 5
@
@
static const int MEDIA_ERR_NETWORK = 2
@
@
static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4
Fields
final int code
Getters and Setters
@
@
int get code
Constructors
MediaError()
@
@
@
Class MediaKeyError extends NativeFieldWrapperClass1
- Static Fields
-
MEDIA_KEYERR_CLIENT: int
MEDIA_KEYERR_DOMAIN: int
MEDIA_KEYERR_HARDWARECHANGE: int
MEDIA_KEYERR_OUTPUT: int
MEDIA_KEYERR_SERVICE: int
MEDIA_KEYERR_UNKNOWN: int
- Fields
-
code: int
systemCode: int
- Getters and Setters
-
code: int
systemCode: int
- Constructors
-
MediaKeyError()
Static Fields
@
@
static const int MEDIA_KEYERR_CLIENT = 2
@
@
static const int MEDIA_KEYERR_DOMAIN = 6
@
@
static const int MEDIA_KEYERR_HARDWARECHANGE = 5
@
@
static const int MEDIA_KEYERR_OUTPUT = 4
@
@
static const int MEDIA_KEYERR_SERVICE = 3
@
@
static const int MEDIA_KEYERR_UNKNOWN = 1
Fields
final int code
final int systemCode
Getters and Setters
@
@
int get code
@
@
@
int get systemCode
Constructors
MediaKeyError()
@
@
@
Class MediaKeyEvent extends Event
- Fields
-
defaultUrl: String
errorCode: MediaKeyError
initData: Uint8List
keySystem: String
message: Uint8List
sessionId: String
systemCode: int
- Getters and Setters
-
defaultUrl: String
errorCode: MediaKeyError
initData: Uint8List
keySystem: String
message: Uint8List
sessionId: String
systemCode: int
Fields
final String defaultUrl
final MediaKeyError errorCode
final Uint8List initData
final String keySystem
final Uint8List message
final String sessionId
final int systemCode
Getters and Setters
@
@
String get defaultUrl
@
@
MediaKeyError get errorCode
@
@
Uint8List get initData
@
@
String get keySystem
@
@
Uint8List get message
@
@
String get sessionId
@
@
int get systemCode
@
@
@
Class MediaKeyMessageEvent extends Event
- Fields
-
destinationUrl: String
message: Uint8List
- Getters and Setters
-
destinationUrl: String
message: Uint8List
Fields
final String destinationUrl
final Uint8List message
Getters and Setters
@
@
String get destinationUrl
@
@
Uint8List get message
@
@
@
Class MediaKeyNeededEvent extends Event
- Fields
-
initData: Uint8List
- Getters and Setters
-
initData: Uint8List
Fields
final Uint8List initData
Getters and Setters
@
@
Uint8List get initData
@
@
@
Class MediaKeySession extends EventTarget
- Static Fields
-
keyAddedEvent: EventStreamProvider
keyErrorEvent: EventStreamProvider
keyMessageEvent: EventStreamProvider
- Fields
-
error: MediaKeyError
keySystem: String
onKeyAdded: Stream
onKeyError: Stream
onKeyMessage: Stream
sessionId: String
- Getters and Setters
-
error: MediaKeyError
keySystem: String
onKeyAdded: Stream<MediaKeyEvent>
onKeyError: Stream<MediaKeyEvent>
onKeyMessage: Stream<MediaKeyEvent>
sessionId: String
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
close(): void
dispatchEvent(Event event): bool
update(Uint8List key): void
Static Fields
@
@
@
@
@
static const EventStreamProvider keyAddedEvent
@
@
@
@
@
static const EventStreamProvider keyErrorEvent
@
@
@
@
@
static const EventStreamProvider keyMessageEvent
Fields
final MediaKeyError error
final String keySystem
final Stream onKeyAdded
final Stream onKeyError
final Stream onKeyMessage
final String sessionId
Getters and Setters
@
@
MediaKeyError get error
@
@
String get keySystem
@
@
Stream<MediaKeyEvent> get onKeyAdded
@
@
Stream<MediaKeyEvent> get onKeyError
@
@
Stream<MediaKeyEvent> get onKeyMessage
@
@
String get sessionId
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
void close()
@
@
bool dispatchEvent(Event event)
@
@
void update(Uint8List key)
@
@
@
Class MediaKeys extends NativeFieldWrapperClass1
- Fields
-
keySystem: String
- Getters and Setters
-
keySystem: String
- Constructors
-
MediaKeys(String keySystem)
- Methods
-
createSession(String type, Uint8List initData): MediaKeySession
Fields
final String keySystem
Getters and Setters
@
@
String get keySystem
Constructors
@
@
factory MediaKeys(String keySystem)
Methods
@
@
MediaKeySession createSession(String type, Uint8List initData)
@
@
@
Class MediaList extends NativeFieldWrapperClass1
- Fields
-
length: int
mediaText: String
- Getters and Setters
-
length: int
mediaText: String
mediaText=(String value)
- Constructors
-
MediaList()
- Methods
-
appendMedium(String newMedium): void
deleteMedium(String oldMedium): void
item(int index): String
Fields
final int length
String mediaText
Getters and Setters
@
@
int get length
@
@
String get mediaText
@
@
set mediaText=(String value)
Constructors
MediaList()
Methods
@
@
void appendMedium(String newMedium)
@
@
void deleteMedium(String oldMedium)
@
@
String item(int index)
@
@
@
Class MediaQueryList extends NativeFieldWrapperClass1
- Fields
-
matches: bool
media: String
- Getters and Setters
-
matches: bool
media: String
- Constructors
-
MediaQueryList()
- Methods
-
addListener(MediaQueryListListener listener): void
removeListener(MediaQueryListListener listener): void
Fields
final bool matches
final String media
Getters and Setters
@
@
bool get matches
@
@
String get media
Constructors
MediaQueryList()
Methods
@
@
void addListener(MediaQueryListListener listener)
@
@
void removeListener(MediaQueryListListener listener)
@
@
@
Abstract class MediaQueryListListener extends NativeFieldWrapperClass1
- Constructors
-
MediaQueryListListener()
- Methods
-
queryChanged(MediaQueryList list): void
Constructors
MediaQueryListListener()
Methods
@
@
void queryChanged(MediaQueryList list)
@
@
@
Class MediaSource extends EventTarget
- Fields
-
activeSourceBuffers: SourceBufferList
duration: num
readyState: String
sourceBuffers: SourceBufferList
- Getters and Setters
-
activeSourceBuffers: SourceBufferList
duration: num
duration=(num value)
readyState: String
sourceBuffers: SourceBufferList
- Constructors
-
MediaSource()
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
addSourceBuffer(String type): SourceBuffer
dispatchEvent(Event event): bool
endOfStream(String error): void
isTypeSupported(String type): bool
removeSourceBuffer(SourceBuffer buffer): void
Fields
final SourceBufferList activeSourceBuffers
num duration
final String readyState
final SourceBufferList sourceBuffers
Getters and Setters
@
@
SourceBufferList get activeSourceBuffers
@
@
num get duration
@
@
set duration=(num value)
@
@
String get readyState
@
@
SourceBufferList get sourceBuffers
Constructors
@
@
factory MediaSource()
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
SourceBuffer addSourceBuffer(String type)
@
@
bool dispatchEvent(Event event)
@
@
void endOfStream(String error)
@
@
static bool isTypeSupported(String type)
@
@
void removeSourceBuffer(SourceBuffer buffer)
@
@
@
Class MediaStream extends EventTarget
- Static Fields
-
addTrackEvent: EventStreamProvider
endedEvent: EventStreamProvider
removeTrackEvent: EventStreamProvider
supported: bool
- Fields
-
ended: bool
id: String
label: String
onAddTrack: Stream
onEnded: Stream
onRemoveTrack: Stream
- Getters and Setters
-
ended: bool
id: String
label: String
onAddTrack: Stream<Event>
onEnded: Stream<Event>
onRemoveTrack: Stream<Event>
supported: bool
- Constructors
-
MediaStream(dynamic stream_OR_tracks)
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
addTrack(MediaStreamTrack track): void
dispatchEvent(Event event): bool
getAudioTracks(): List<MediaStreamTrack>
getTrackById(String trackId): MediaStreamTrack
getVideoTracks(): List<MediaStreamTrack>
removeTrack(MediaStreamTrack track): void
stop(): void
Static Fields
@
@
static const EventStreamProvider addTrackEvent
@
@
static const EventStreamProvider endedEvent
@
@
static const EventStreamProvider removeTrackEvent
static final bool supported
Fields
final bool ended
final String id
final String label
final Stream onAddTrack
final Stream onEnded
final Stream onRemoveTrack
Getters and Setters
@
@
bool get ended
@
@
String get id
@
@
@
String get label
@
@
Stream<Event> get onAddTrack
@
@
Stream<Event> get onEnded
@
@
Stream<Event> get onRemoveTrack
static bool get supported
Checks if the MediaStream APIs are supported on the current platform.
See also:
Constructors
@
@
factory MediaStream(dynamic stream_OR_tracks)
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
void addTrack(MediaStreamTrack track)
@
@
bool dispatchEvent(Event event)
@
@
List<MediaStreamTrack> getAudioTracks()
@
@
MediaStreamTrack getTrackById(String trackId)
@
@
List<MediaStreamTrack> getVideoTracks()
@
@
void removeTrack(MediaStreamTrack track)
@
@
void stop()
@
@
@
@
Class MediaStreamEvent extends Event
- Static Fields
-
supported: bool
- Fields
-
stream: MediaStream
- Getters and Setters
-
stream: MediaStream
supported: bool
Static Fields
static final bool supported
Fields
final MediaStream stream
Getters and Setters
@
@
MediaStream get stream
static bool get supported
Checks if this type is supported on the current platform.
@
@
@
@
Class MediaStreamTrack extends EventTarget
- Static Fields
-
endedEvent: EventStreamProvider
muteEvent: EventStreamProvider
unmuteEvent: EventStreamProvider
- Fields
-
enabled: bool
id: String
kind: String
label: String
onEnded: Stream
onMute: Stream
onUnmute: Stream
readyState: String
- Getters and Setters
-
enabled: bool
enabled=(bool value)
id: String
kind: String
label: String
onEnded: Stream<Event>
onMute: Stream<Event>
onUnmute: Stream<Event>
readyState: String
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
dispatchEvent(Event event): bool
getSources(MediaStreamTrackSourcesCallback callback): void
Static Fields
@
@
static const EventStreamProvider endedEvent
@
@
static const EventStreamProvider muteEvent
@
@
static const EventStreamProvider unmuteEvent
Fields
bool enabled
final String id
final String kind
final String label
final Stream onEnded
final Stream onMute
final Stream onUnmute
final String readyState
Getters and Setters
@
@
bool get enabled
@
@
set enabled=(bool value)
@
@
String get id
@
@
String get kind
@
@
String get label
@
@
Stream<Event> get onEnded
@
@
Stream<Event> get onMute
@
@
Stream<Event> get onUnmute
@
@
String get readyState
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
bool dispatchEvent(Event event)
@
@
@
static void getSources(MediaStreamTrackSourcesCallback callback)
@
@
@
@
Class MediaStreamTrackEvent extends Event
- Static Fields
-
supported: bool
- Fields
-
track: MediaStreamTrack
- Getters and Setters
-
supported: bool
track: MediaStreamTrack
Static Fields
static final bool supported
Fields
final MediaStreamTrack track
Getters and Setters
static bool get supported
Checks if this type is supported on the current platform.
@
@
MediaStreamTrack get track
@
@
@
Class MemoryInfo extends NativeFieldWrapperClass1
- Fields
-
jsHeapSizeLimit: int
totalJSHeapSize: int
usedJSHeapSize: int
- Getters and Setters
-
jsHeapSizeLimit: int
totalJSHeapSize: int
usedJSHeapSize: int
- Constructors
-
MemoryInfo()
Fields
final int jsHeapSizeLimit
final int totalJSHeapSize
final int usedJSHeapSize
Getters and Setters
@
@
int get jsHeapSizeLimit
@
@
int get totalJSHeapSize
@
@
int get usedJSHeapSize
Constructors
MemoryInfo()
@
@
Class MenuElement extends HtmlElement
- Constructors
-
MenuElement()
An HTML <menu> element.
A <menu> element represents an unordered list of menu commands.
See also:
Menu Element
(https://developer.mozilla.org/en-US/docs/HTML/Element/menu) from MDN.
Menu Element
(http://www.w3.org/TR/html5/the-menu-element.html#the-menu-element) from the W3C.
Constructors
@
@
factory MenuElement()
@
@
@
Class MessageChannel extends NativeFieldWrapperClass1
- Fields
-
port1: MessagePort
port2: MessagePort
- Getters and Setters
-
port1: MessagePort
port2: MessagePort
- Constructors
-
MessageChannel()
Fields
final MessagePort port1
final MessagePort port2
Getters and Setters
@
@
MessagePort get port1
@
@
MessagePort get port2
Constructors
MessageChannel()
@
Class MessageEvent extends Event
- Fields
-
data: Object
lastEventId: String
origin: String
ports: List
source: EventTarget
- Getters and Setters
-
data: Object
lastEventId: String
origin: String
ports: List<MessagePort>
source: EventTarget
- Constructors
-
MessageEvent(String type, bool canBubble, bool cancelable, Object data, String origin, String lastEventId, Window source, List<dynamic> messagePorts)
Fields
final Object data
final String lastEventId
final String origin
final List ports
final EventTarget source
Getters and Setters
@
@
Object get data
@
@
@
String get lastEventId
@
@
String get origin
@
@
@
List<MessagePort> get ports
@
@
EventTarget get source
Constructors
factory MessageEvent(String type, bool canBubble, bool cancelable, Object data, String origin, String lastEventId, Window source, List<dynamic> messagePorts)
@
@
@
Class MessagePort extends EventTarget
- Static Fields
-
messageEvent: EventStreamProvider
- Fields
-
onMessage: Stream
- Getters and Setters
-
onMessage: Stream<MessageEvent>
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
close(): void
dispatchEvent(Event event): bool
postMessage(Object message, List<dynamic> messagePorts): void
start(): void
Static Fields
@
@
static const EventStreamProvider messageEvent
Fields
final Stream onMessage
Getters and Setters
@
@
Stream<MessageEvent> get onMessage
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
void close()
@
@
bool dispatchEvent(Event event)
@
@
void postMessage(Object message, List<dynamic> messagePorts)
@
@
void start()
@
@
Class MetaElement extends HtmlElement
- Fields
-
content: String
httpEquiv: String
name: String
- Getters and Setters
-
content: String
content=(String value)
httpEquiv: String
httpEquiv=(String value)
name: String
name=(String value)
- Constructors
-
MetaElement()
Fields
String content
String httpEquiv
String name
Getters and Setters
@
@
String get content
@
@
set content=(String value)
@
@
String get httpEquiv
@
@
set httpEquiv=(String value)
@
@
String get name
@
@
set name=(String value)
Constructors
@
@
factory MetaElement()
@
@
@
Class Metadata extends NativeFieldWrapperClass1
- Fields
-
modificationTime: DateTime
size: int
- Getters and Setters
-
modificationTime: DateTime
size: int
- Constructors
-
Metadata()
Fields
final DateTime modificationTime
final int size
Getters and Setters
@
@
DateTime get modificationTime
@
@
int get size
Constructors
Metadata()
@
@
@
@
@
@
Class MeterElement extends HtmlElement
- Static Fields
-
supported: bool
- Fields
-
high: num
labels: List
low: num
max: num
min: num
optimum: num
value: num
- Getters and Setters
-
high: num
high=(num value)
labels: List<Node>
low: num
low=(num value)
max: num
max=(num value)
min: num
min=(num value)
optimum: num
optimum=(num value)
supported: bool
value: num
value=(num value)
- Constructors
-
MeterElement()
Static Fields
static final bool supported
Fields
num high
final List labels
num low
num max
num min
num optimum
num value
Getters and Setters
@
@
num get high
@
@
set high=(num value)
@
@
@
List<Node> get labels
@
@
num get low
@
@
set low=(num value)
@
@
num get max
@
@
set max=(num value)
@
@
num get min
@
@
set min=(num value)
@
@
num get optimum
@
@
set optimum=(num value)
static bool get supported
Checks if this type is supported on the current platform.
@
@
num get value
@
@
set value=(num value)
Constructors
@
@
factory MeterElement()
@
@
@
Class MidiAccess extends EventTarget
- Static Fields
-
connectEvent: EventStreamProvider
disconnectEvent: EventStreamProvider
- Fields
-
onConnect: Stream
onDisconnect: Stream
- Getters and Setters
-
onConnect: Stream<MidiConnectionEvent>
onDisconnect: Stream<MidiConnectionEvent>
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
dispatchEvent(Event event): bool
inputs(): List<MidiInput>
outputs(): List<MidiOutput>
Static Fields
@
@
static const EventStreamProvider connectEvent
@
@
static const EventStreamProvider disconnectEvent
Fields
final Stream onConnect
final Stream onDisconnect
Getters and Setters
@
@
Stream<MidiConnectionEvent> get onConnect
@
@
Stream<MidiConnectionEvent> get onDisconnect
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
bool dispatchEvent(Event event)
@
@
List<MidiInput> inputs()
@
@
List<MidiOutput> outputs()
@
@
@
Class MidiAccessPromise extends NativeFieldWrapperClass1
- Constructors
-
MidiAccessPromise()
- Methods
-
then(MidiSuccessCallback successCallback, MidiErrorCallback errorCallback): void
Constructors
MidiAccessPromise()
Methods
@
@
@
void then(MidiSuccessCallback successCallback, MidiErrorCallback errorCallback)
@
@
@
Class MidiConnectionEvent extends Event
- Fields
-
port: MidiPort
- Getters and Setters
-
port: MidiPort
Fields
final MidiPort port
Getters and Setters
@
@
MidiPort get port
@
@
@
Class MidiInput extends MidiPort
- Static Fields
-
midiMessageEvent: EventStreamProvider
- Fields
-
onMidiMessage: Stream
- Getters and Setters
-
onMidiMessage: Stream<MidiMessageEvent>
Static Fields
@
@
static const EventStreamProvider midiMessageEvent
Fields
final Stream onMidiMessage
Getters and Setters
@
@
Stream<MidiMessageEvent> get onMidiMessage
@
@
@
Class MidiMessageEvent extends Event
- Fields
-
data: Uint8List
receivedTime: double
- Getters and Setters
-
data: Uint8List
receivedTime: double
Fields
final Uint8List data
final double receivedTime
Getters and Setters
@
@
Uint8List get data
@
@
double get receivedTime
@
@
@
Class MidiOutput extends MidiPort
- Methods
-
send(Uint8List data, num timestamp): void
Methods
void send(Uint8List data, num timestamp)
@
@
@
Class MidiPort extends EventTarget
- Static Fields
-
disconnectEvent: EventStreamProvider
- Fields
-
id: String
manufacturer: String
name: String
onDisconnect: Stream
type: String
version: String
- Getters and Setters
-
id: String
manufacturer: String
name: String
onDisconnect: Stream<MidiConnectionEvent>
type: String
version: String
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
dispatchEvent(Event event): bool
Static Fields
@
@
static const EventStreamProvider disconnectEvent
Fields
final String id
final String manufacturer
final String name
final Stream onDisconnect
final String type
final String version
Getters and Setters
@
@
String get id
@
@
String get manufacturer
@
@
String get name
@
@
Stream<MidiConnectionEvent> get onDisconnect
@
@
String get type
@
@
String get version
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
bool dispatchEvent(Event event)
@
@
@
Class MimeType extends NativeFieldWrapperClass1
- Fields
-
description: String
enabledPlugin: Plugin
suffixes: String
type: String
- Getters and Setters
-
description: String
enabledPlugin: Plugin
suffixes: String
type: String
- Constructors
-
MimeType()
Fields
final String description
final Plugin enabledPlugin
final String suffixes
final String type
Getters and Setters
@
@
String get description
@
@
Plugin get enabledPlugin
@
@
String get suffixes
@
@
String get type
Constructors
MimeType()
- Fields
-
first: MimeType
last: MimeType
length: int
single: MimeType
- Getters and Setters
-
first: MimeType
last: MimeType
length: int
length=(int value)
single: MimeType
- Constructors
-
MimeTypeArray()
- Methods
-
[](int index): MimeType
[]=(int index, MimeType value): void
elementAt(int index): MimeType
item(int index): MimeType
namedItem(String name): MimeType
Fields
final MimeType first
final MimeType last
int length
final MimeType single
Getters and Setters
MimeType get first
MimeType get last
@
@
int get length
set length=(int value)
MimeType get single
Constructors
MimeTypeArray()
Methods
MimeType [](int index)
Returns the object at the given index
in the list or throws a RangeError
if index
is out of bounds.
void []=(int index, MimeType value)
Sets the value at the given index
in the list to value
or throws a RangeError
if index
is out of bounds.
MimeType elementAt(int index)
Returns the index
th element.
If this
has fewer than index
elements throws a RangeError
.
Note: if this
does not have a deterministic iteration order then the function may simply return any element without any iteration if there are at least index
elements in this
.
@
@
MimeType item(int index)
@
@
MimeType namedItem(String name)
@
@
@
Class ModElement extends HtmlElement
- Fields
-
cite: String
dateTime: String
- Getters and Setters
-
cite: String
cite=(String value)
dateTime: String
dateTime=(String value)
Fields
String cite
String dateTime
Getters and Setters
@
@
String get cite
@
@
set cite=(String value)
@
@
String get dateTime
@
@
set dateTime=(String value)
@
@
Abstract class MonthInputElement implements RangeInputElementBase
- Static Fields
-
supported: bool
- Fields
-
readOnly: bool
required: bool
valueAsDate: DateTime
- Getters and Setters
-
supported: bool
- Constructors
-
MonthInputElement()
A date consisting of a year and a month with no time zone.
Use supported to check if this is supported on the current platform.
Static Fields
static final bool supported
Fields
@
bool readOnly
@
bool required
@
DateTime valueAsDate
Getters and Setters
static bool get supported
Returns true if this input type is supported on the current platform.
Constructors
factory MonthInputElement()
@
Class MouseEvent extends UIEvent
- Fields
-
altKey: bool
button: int
client: Point
clientX: int
clientY: int
ctrlKey: bool
dataTransfer: DataTransfer
fromElement: Node
metaKey: bool
movement: Point
movementX: int
movementY: int
offset: Point
offsetX: int
offsetY: int
relatedTarget: EventTarget
screen: Point
screenX: int
screenY: int
shiftKey: bool
toElement: Node
- Getters and Setters
-
altKey: bool
button: int
client: Point
clientX: int
clientY: int
ctrlKey: bool
dataTransfer: DataTransfer
fromElement: Node
metaKey: bool
movement: Point
movementX: int
movementY: int
offset: Point
offsetX: int
offsetY: int
relatedTarget: EventTarget
screen: Point
screenX: int
screenY: int
shiftKey: bool
toElement: Node
- Constructors
-
MouseEvent(String type, Window view, int detail, int screenX, int screenY, int clientX, int clientY, int button, bool canBubble, bool cancelable, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, EventTarget relatedTarget)
Fields
final bool altKey
final int button
final Point client
final int clientX
final int clientY
final bool ctrlKey
final DataTransfer dataTransfer
final Node fromElement
final bool metaKey
final Point movement
final int movementX
final int movementY
final Point offset
final int offsetX
final int offsetY
final EventTarget relatedTarget
final Point screen
final int screenX
final int screenY
final bool shiftKey
final Node toElement
Getters and Setters
@
@
bool get altKey
@
@
int get button
@
@
Point get client
@deprecated
int get clientX
@deprecated
int get clientY
@
@
bool get ctrlKey
@
@
@
DataTransfer get dataTransfer
@
@
@
Node get fromElement
@
@
bool get metaKey
@
@
@
@
@
Point get movement
@deprecated
int get movementX
@deprecated
int get movementY
Point get offset
The coordinates of the mouse pointer in target node coordinates.
This value may vary between platforms if the target node moves after the event has fired or if the element has CSS transforms affecting it.
@deprecated
int get offsetX
@deprecated
int get offsetY
@
@
EventTarget get relatedTarget
@
@
Point get screen
@deprecated
int get screenX
@deprecated
int get screenY
@
@
bool get shiftKey
@
@
@
Node get toElement
Constructors
factory MouseEvent(String type, Window view, int detail, int screenX, int screenY, int clientX, int clientY, int button, bool canBubble, bool cancelable, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, EventTarget relatedTarget)
@
@deprecated
Class MutationEvent extends Event
- Static Fields
-
ADDITION: int
MODIFICATION: int
REMOVAL: int
- Fields
-
attrChange: int
attrName: String
newValue: String
prevValue: String
relatedNode: Node
- Getters and Setters
-
attrChange: int
attrName: String
newValue: String
prevValue: String
relatedNode: Node
- Constructors
-
MutationEvent(String type, bool canBubble, bool cancelable, Node relatedNode, String prevValue, String newValue, String attrName, int attrChange)
Static Fields
@
@
static const int ADDITION = 2
@
@
static const int MODIFICATION = 1
@
@
static const int REMOVAL = 3
Fields
final int attrChange
final String attrName
final String newValue
final String prevValue
final Node relatedNode
Getters and Setters
@
@
int get attrChange
@
@
String get attrName
@
@
String get newValue
@
@
String get prevValue
@
@
Node get relatedNode
Constructors
factory MutationEvent(String type, bool canBubble, bool cancelable, Node relatedNode, String prevValue, String newValue, String attrName, int attrChange)
@
@
@
@
@
Class MutationObserver extends NativeFieldWrapperClass1
- Static Fields
-
supported: bool
- Getters and Setters
-
supported: bool
- Constructors
-
MutationObserver(MutationCallback callback)
- Methods
-
disconnect(): void
observe(Node target, bool childList, bool attributes, bool characterData, bool subtree, bool attributeOldValue, bool characterDataOldValue, List<String> attributeFilter): void
takeRecords(): List<MutationRecord>
Static Fields
static final bool supported
Getters and Setters
static bool get supported
Checks to see if the mutation observer API is supported on the current platform.
Constructors
@
@
factory MutationObserver(MutationCallback callback)
Methods
@
@
void disconnect()
void observe(Node target, bool childList, bool attributes, bool characterData, bool subtree, bool attributeOldValue, bool characterDataOldValue, List<String> attributeFilter)
@
@
List<MutationRecord> takeRecords()
@
@
Class MutationRecord extends NativeFieldWrapperClass1
- Fields
-
addedNodes: List
attributeName: String
attributeNamespace: String
nextSibling: Node
oldValue: String
previousSibling: Node
removedNodes: List
target: Node
type: String
- Getters and Setters
-
addedNodes: List<Node>
attributeName: String
attributeNamespace: String
nextSibling: Node
oldValue: String
previousSibling: Node
removedNodes: List<Node>
target: Node
type: String
- Constructors
-
MutationRecord()
Fields
final List addedNodes
final String attributeName
final String attributeNamespace
final Node nextSibling
final String oldValue
final Node previousSibling
final List removedNodes
final Node target
final String type
Getters and Setters
@
@
List<Node> get addedNodes
@
@
String get attributeName
@
@
String get attributeNamespace
@
@
Node get nextSibling
@
@
String get oldValue
@
@
Node get previousSibling
@
@
List<Node> get removedNodes
@
@
Node get target
@
@
String get type
Constructors
MutationRecord()
@
@
@
@
@
Class NamedFlow extends EventTarget
- Fields
-
firstEmptyRegionIndex: int
name: String
overset: bool
- Getters and Setters
-
firstEmptyRegionIndex: int
name: String
overset: bool
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
dispatchEvent(Event event): bool
getContent(): List<Node>
getRegions(): List<Node>
getRegionsByContent(Node contentNode): List<Node>
Fields
final int firstEmptyRegionIndex
final String name
final bool overset
Getters and Setters
@
@
int get firstEmptyRegionIndex
@
@
String get name
@
@
bool get overset
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
bool dispatchEvent(Event event)
@
@
List<Node> getContent()
@
@
List<Node> getRegions()
@
@
List<Node> getRegionsByContent(Node contentNode)
@
@
@
@
@
Class NamedFlowCollection extends NativeFieldWrapperClass1
- Fields
-
length: int
- Getters and Setters
-
length: int
- Constructors
-
NamedFlowCollection()
- Methods
-
item(int index): NamedFlow
namedItem(String name): NamedFlow
Fields
final int length
Getters and Setters
@
@
int get length
Constructors
NamedFlowCollection()
Methods
@
@
NamedFlow item(int index)
@
@
NamedFlow namedItem(String name)
@
Class Navigator extends NativeFieldWrapperClass1 implements NavigatorOnLine, NavigatorID
- Fields
-
appCodeName: String
appName: String
appVersion: String
cookieEnabled: bool
doNotTrack: String
geolocation: Geolocation
language: String
mimeTypes: MimeTypeArray
onLine: bool
persistentStorage: StorageQuota
platform: String
plugins: PluginArray
product: String
productSub: String
temporaryStorage: StorageQuota
userAgent: String
vendor: String
vendorSub: String
- Getters and Setters
-
appCodeName: String
appName: String
appVersion: String
cookieEnabled: bool
doNotTrack: String
geolocation: Geolocation
language: String
mimeTypes: MimeTypeArray
onLine: bool
persistentStorage: StorageQuota
platform: String
plugins: PluginArray
product: String
productSub: String
temporaryStorage: StorageQuota
userAgent: String
vendor: String
vendorSub: String
- Constructors
-
Navigator()
- Methods
-
getGamepads(): List<Gamepad>
getStorageUpdates(): void
getUserMedia(dynamic audio, dynamic video): Future<MediaStream>
javaEnabled(): bool
registerProtocolHandler(String scheme, String url, String title): void
requestMidiAccess(Map<dynamic, dynamic> options): MidiAccessPromise
Fields
final String appCodeName
final String appName
final String appVersion
final bool cookieEnabled
final String doNotTrack
final Geolocation geolocation
final String language
final MimeTypeArray mimeTypes
final bool onLine
final StorageQuota persistentStorage
final String platform
final PluginArray plugins
final String product
final String productSub
final StorageQuota temporaryStorage
final String userAgent
final String vendor
final String vendorSub
Getters and Setters
@
@
@
String get appCodeName
@
@
String get appName
@
@
String get appVersion
@
@
@
bool get cookieEnabled
@
@
@
String get doNotTrack
@
@
@
Geolocation get geolocation
@
@
String get language
@
@
@
MimeTypeArray get mimeTypes
@
@
@
bool get onLine
@
@
@
@
@
StorageQuota get persistentStorage
@
@
String get platform
@
@
@deprecated
PluginArray get plugins
@
@
@
String get product
@
@
@
String get productSub
@
@
@
@
@
StorageQuota get temporaryStorage
@
@
String get userAgent
@
@
@
String get vendor
@
@
@
String get vendorSub
Constructors
Navigator()
Methods
@
@
@
@
@
List<Gamepad> getGamepads()
@
@
@
void getStorageUpdates()
@
@
@
Future<MediaStream> getUserMedia(dynamic audio, dynamic video)
Gets a stream (video and or audio) from the local computer.
Use MediaStream.supported
to check if this is supported by the current platform. The arguments audio
and video
default to false
(stream does not use audio or video, respectively).
Simple example usage:
window.navigator.getUserMedia(audio: true, video: true).then((stream) {
var video = new VideoElement()
..autoplay = true
..src = Url.createObjectUrlFromStream(stream);
document.body.append(video);
});
The user can also pass in Maps to the audio or video parameters to specify mandatory and optional constraints for the media stream. Not passing in a map, but passing in
true
will provide a MediaStream with audio or video capabilities, but without any additional constraints. The particular constraint names for audio and video are still in flux, but as of this writing, here is an example providing more constraints.
window.navigator.getUserMedia(
audio: true,
video: {'mandatory':
{ 'minAspectRatio': 1.333, 'maxAspectRatio': 1.334 },
'optional':
[{ 'minFrameRate': 60 },
{ 'maxWidth': 640 }]
});
See also:
@
@
@deprecated
bool javaEnabled()
@
@
@
void registerProtocolHandler(String scheme, String url, String title)
@
@
@
MidiAccessPromise requestMidiAccess(Map<dynamic, dynamic> options)
@
@
@
Abstract class NavigatorID extends NativeFieldWrapperClass1
- Fields
-
appName: String
appVersion: String
platform: String
userAgent: String
- Getters and Setters
-
appName: String
appVersion: String
platform: String
userAgent: String
- Constructors
-
NavigatorID()
Fields
final String appName
final String appVersion
final String platform
final String userAgent
Getters and Setters
@
@
@
String get appName
@
@
@
String get appVersion
@
@
@
String get platform
@
@
@
String get userAgent
Constructors
NavigatorID()
@
@
@
Abstract class NavigatorOnLine extends NativeFieldWrapperClass1
- Fields
-
onLine: bool
- Getters and Setters
-
onLine: bool
- Constructors
-
NavigatorOnLine()
Fields
final bool onLine
Getters and Setters
@
@
@
bool get onLine
Constructors
NavigatorOnLine()
@
@
@
Class NavigatorUserMediaError extends NativeFieldWrapperClass1
- Fields
-
constraintName: String
message: String
name: String
- Getters and Setters
-
constraintName: String
message: String
name: String
- Constructors
-
NavigatorUserMediaError()
Fields
final String constraintName
final String message
final String name
Getters and Setters
@
@
String get constraintName
@
@
String get message
@
@
String get name
Constructors
NavigatorUserMediaError()
- Static Fields
-
ATTRIBUTE_NODE: int
CDATA_SECTION_NODE: int
COMMENT_NODE: int
DOCUMENT_FRAGMENT_NODE: int
DOCUMENT_NODE: int
DOCUMENT_TYPE_NODE: int
ELEMENT_NODE: int
ENTITY_NODE: int
ENTITY_REFERENCE_NODE: int
NOTATION_NODE: int
PROCESSING_INSTRUCTION_NODE: int
TEXT_NODE: int
- Fields
-
bindings: Map
childNodes: List
document: Document
firstChild: Node
lastChild: Node
nextNode: Node
nodeName: String
nodeType: int
nodeValue: String
nodes: List
parent: Element
parentNode: Node
previousNode: Node
templateInstance: TemplateInstance
text: String
- Getters and Setters
-
bindings: Map<String, dynamic>
childNodes: List<Node>
document: Document
firstChild: Node
lastChild: Node
nextNode: Node
nodeName: String
nodeType: int
nodeValue: String
nodes: List<Node>
nodes=(Iterable<Node> value)
parent: Element
parentNode: Node
previousNode: Node
templateInstance: TemplateInstance
text: String
text=(String value)
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
append(Node newChild): Node
bind(String name, dynamic model, String path): dynamic
clone(bool deep): Node
contains(Node other): bool
createBinding(String name, dynamic model, String path): dynamic
dispatchEvent(Event event): bool
hasChildNodes(): bool
insertAllBefore(Iterable<Node> newNodes, Node refChild): Node
insertBefore(Node newChild, Node refChild): Node
remove(): void
replaceWith(Node otherNode): Node
toString(): String
unbind(String name): void
unbindAll(): void
Static Fields
@
@
static const int ATTRIBUTE_NODE = 2
@
@
static const int CDATA_SECTION_NODE = 4
@
@
static const int COMMENT_NODE = 8
@
@
static const int DOCUMENT_FRAGMENT_NODE = 11
@
@
static const int DOCUMENT_NODE = 9
@
@
static const int DOCUMENT_TYPE_NODE = 10
@
@
static const int ELEMENT_NODE = 1
@
@
static const int ENTITY_NODE = 6
@
@
static const int ENTITY_REFERENCE_NODE = 5
@
@
static const int NOTATION_NODE = 12
@
@
static const int PROCESSING_INSTRUCTION_NODE = 7
@
@
static const int TEXT_NODE = 3
Fields
final Map bindings
final List childNodes
final Document document
final Node firstChild
final Node lastChild
final Node nextNode
final String nodeName
final int nodeType
final String nodeValue
List nodes
final Element parent
final Node parentNode
final Node previousNode
final TemplateInstance templateInstance
String text
Getters and Setters
@
Map<String, dynamic> get bindings
Gets the data bindings that are associated with this node.
@
@
@deprecated
List<Node> get childNodes
@
@
Document get document
@
@
Node get firstChild
@
@
Node get lastChild
@
@
Node get nextNode
@
@
String get nodeName
@
@
int get nodeType
@
@
String get nodeValue
List<Node> get nodes
set nodes=(Iterable<Node> value)
@
@
Element get parent
@
@
Node get parentNode
@
@
Node get previousNode
@
TemplateInstance get templateInstance
Gets the template instance that instantiated this node, if any.
@
@
String get text
@
@
set text=(String value)
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
Node append(Node newChild)
Adds a node to the end of the child nodes
list of this node.
If the node already exists in this document, it will be removed from its current parent node, then added to this node.
This method is more efficient than nodes.add
, and is the preferred way of appending a child node.
@
dynamic bind(String name, dynamic model, String path)
Binds the attribute name
to the path
of the model
. Path is a String of accessors such as foo.bar.baz
. Returns the NodeBinding
instance.
@
@
Node clone(bool deep)
@
@
bool contains(Node other)
@
dynamic createBinding(String name, dynamic model, String path)
Creates a binding to the attribute name
to the path
of the model
.
This can be overridden by custom elements to provide the binding used in Node.bind
. This will only create the binding; it will not add it to bindings
.
You should not need to call this directly except from Node.bind
.
@
@
bool dispatchEvent(Event event)
@
@
bool hasChildNodes()
Node insertAllBefore(Iterable<Node> newNodes, Node refChild)
Inserts all of the nodes into this node directly before refChild.
See also:
@
@
Node insertBefore(Node newChild, Node refChild)
@
void remove()
Removes this node from the DOM.
@
Node replaceWith(Node otherNode)
Replaces this node with another node.
String toString()
Print out a String representation of this Node.
@
void unbind(String name)
Unbinds the attribute name
.
@
void unbindAll()
Unbinds all bound attributes.
@
@
@
Class NodeFilter extends NativeFieldWrapperClass1
- Static Fields
-
FILTER_ACCEPT: int
FILTER_REJECT: int
FILTER_SKIP: int
SHOW_ALL: int
SHOW_ATTRIBUTE: int
SHOW_CDATA_SECTION: int
SHOW_COMMENT: int
SHOW_DOCUMENT: int
SHOW_DOCUMENT_FRAGMENT: int
SHOW_DOCUMENT_TYPE: int
SHOW_ELEMENT: int
SHOW_ENTITY: int
SHOW_ENTITY_REFERENCE: int
SHOW_NOTATION: int
SHOW_PROCESSING_INSTRUCTION: int
SHOW_TEXT: int
- Constructors
-
NodeFilter()
Static Fields
@
@
static const int FILTER_ACCEPT = 1
@
@
static const int FILTER_REJECT = 2
@
@
static const int FILTER_SKIP = 3
@
@
static const int SHOW_ALL = 4294967295
@
@
@deprecated
static const int SHOW_ATTRIBUTE = 2
@
@
@deprecated
static const int SHOW_CDATA_SECTION = 8
@
@
static const int SHOW_COMMENT = 128
@
@
static const int SHOW_DOCUMENT = 256
@
@
static const int SHOW_DOCUMENT_FRAGMENT = 1024
@
@
static const int SHOW_DOCUMENT_TYPE = 512
@
@
static const int SHOW_ELEMENT = 1
@
@
@deprecated
static const int SHOW_ENTITY = 32
@
@
@deprecated
static const int SHOW_ENTITY_REFERENCE = 16
@
@
@deprecated
static const int SHOW_NOTATION = 2048
@
@
static const int SHOW_PROCESSING_INSTRUCTION = 64
@
@
static const int SHOW_TEXT = 4
Constructors
NodeFilter()
@
@
Class NodeIterator extends NativeFieldWrapperClass1
- Fields
-
pointerBeforeReferenceNode: bool
referenceNode: Node
root: Node
whatToShow: int
- Getters and Setters
-
pointerBeforeReferenceNode: bool
referenceNode: Node
root: Node
whatToShow: int
- Constructors
-
NodeIterator(Node root, int whatToShow)
- Methods
-
detach(): void
nextNode(): Node
previousNode(): Node
Fields
final bool pointerBeforeReferenceNode
final Node referenceNode
final Node root
final int whatToShow
Getters and Setters
@
@
bool get pointerBeforeReferenceNode
@
@
Node get referenceNode
@
@
Node get root
@
@
int get whatToShow
Constructors
factory NodeIterator(Node root, int whatToShow)
Methods
@
@
void detach()
@
@
Node nextNode()
@
@
Node previousNode()
- Fields
-
first: Node
last: Node
length: int
single: Node
- Getters and Setters
-
first: Node
last: Node
length: int
length=(int value)
single: Node
- Constructors
-
NodeList()
- Methods
-
[](int index): Node
[]=(int index, Node value): void
elementAt(int index): Node
Fields
final Node first
final Node last
int length
final Node single
Getters and Setters
Node get first
Node get last
@
@
int get length
set length=(int value)
Node get single
Constructors
NodeList()
Methods
Node [](int index)
Returns the object at the given index
in the list or throws a RangeError
if index
is out of bounds.
void []=(int index, Node value)
Sets the value at the given index
in the list to value
or throws a RangeError
if index
is out of bounds.
Node elementAt(int index)
Returns the index
th element.
If this
has fewer than index
elements throws a RangeError
.
Note: if this
does not have a deterministic iteration order then the function may simply return any element without any iteration if there are at least index
elements in this
.
Abstract class NodeTreeSanitizer
- Constructors
-
NodeTreeSanitizer(NodeValidator validator)
- Methods
-
sanitizeTree(Node node): void
Performs sanitization of a node tree after construction to ensure that it does not contain any disallowed elements or attributes.
In general custom implementations of this class should not be necessary and all validation customization should be done in custom NodeValidators, but custom implementations of this class can be created to perform more complex tree sanitization.
Constructors
factory NodeTreeSanitizer(NodeValidator validator)
Constructs a default tree sanitizer which will remove all elements and attributes which are not allowed by the provided validator.
Methods
void sanitizeTree(Node node)
Called with the root of the tree which is to be sanitized.
This method needs to walk the entire tree and either remove elements and attributes which are not recognized as safe or throw an exception which will mark the entire tree as unsafe.
Abstract class NodeValidator
- Constructors
-
NodeValidator(UriPolicy uriPolicy)
NodeValidator.throws(NodeValidator base)
- Methods
-
allowsAttribute(Element element, String attributeName, String value): bool
allowsElement(Element element): bool
Interface used to validate that only accepted elements and attributes are allowed while parsing HTML strings into DOM nodes.
In general, customization of validation behavior should be done via the NodeValidatorBuilder
class to mitigate the chances of incorrectly implementing validation rules.
Constructors
factory NodeValidator(UriPolicy uriPolicy)
Construct a default NodeValidator which only accepts whitelisted HTML5 elements and attributes.
If a uriPolicy is not specified then the default uriPolicy will be used.
factory NodeValidator.throws(NodeValidator base)
Methods
bool allowsAttribute(Element element, String attributeName, String value)
Returns true if the attribute is allowed.
The attributeName parameter will always be in lowercase.
See allowsElement
for format of tagName.
bool allowsElement(Element element)
Returns true if the tagName is an accepted type.
Class NodeValidatorBuilder implements NodeValidator
- Constructors
-
NodeValidatorBuilder()
NodeValidatorBuilder.common()
- Methods
-
add(NodeValidator validator): void
allowCustomElement(String tagName, UriPolicy uriPolicy, Iterable<String> attributes, Iterable<String> uriAttributes): void
allowElement(String tagName, UriPolicy uriPolicy, Iterable<String> attributes, Iterable<String> uriAttributes): void
allowHtml5(UriPolicy uriPolicy): void
allowImages(UriPolicy uriPolicy): void
allowInlineStyles(String tagName): void
allowNavigation(UriPolicy uriPolicy): void
allowSvg(): void
allowTagExtension(String tagName, String baseName, UriPolicy uriPolicy, Iterable<String> attributes, Iterable<String> uriAttributes): void
allowTemplating(): void
allowTextElements(): void
allowsAttribute(Element element, String attributeName, String value): bool
allowsElement(Element element): bool
Class which helps construct standard node validation policies.
By default this will not accept anything, but the 'allow*' functions can be used to expand what types of elements or attributes are allowed.
All allow functions are additive- elements will be accepted if they are accepted by any specific rule.
It is important to remember that sanitization is not just intended to prevent cross-site scripting attacks, but also to prevent information from being displayed in unexpected ways. For example something displaying basic formatted text may not expect <video>
tags to appear. In this case an empty NodeValidatorBuilder with just allowTextElements() might be appropriate.
Constructors
NodeValidatorBuilder()
NodeValidatorBuilder.common()
Creates a new NodeValidatorBuilder which accepts common constructs.
By default this will accept HTML5 elements and attributes with the default UriPolicy
and templating elements.
Notable syntax which is filtered:
- Only known-good HTML5 elements and attributes are allowed.
- All URLs must be same-origin, use
allowNavigation
and allowImages
to
specify additional URI policies.
- Inline-styles are not allowed.
- Custom element tags are disallowed, use
allowCustomElement
. - Custom tags extensions are disallowed, use
allowTagExtension
. - SVG Elements are not allowed, use
allowSvg
.
For scenarios where the HTML should only contain formatted text allowTextElements
is more appropriate.
Use allowSvg
to allow SVG elements.
Methods
void add(NodeValidator validator)
Add an additional validator to the current list of validators.
Elements and attributes will be accepted if they are accepted by any validators.
void allowCustomElement(String tagName, UriPolicy uriPolicy, Iterable<String> attributes, Iterable<String> uriAttributes)
Allow custom elements with the specified tag name and specified attributes.
This will allow the elements as custom tags (such as <x-foo></x-foo>), but will not allow tag extensions. Use allowTagExtension
to allow tag extensions.
void allowElement(String tagName, UriPolicy uriPolicy, Iterable<String> attributes, Iterable<String> uriAttributes)
void allowHtml5(UriPolicy uriPolicy)
Allow common safe HTML5 elements and attributes.
This list is based off of the Caja whitelists at: https://code.google.com/p/google-caja/wiki/CajaWhitelists.
Common things which are not allowed are script elements, style attributes and any script handlers.
void allowImages(UriPolicy uriPolicy)
Allows image elements.
The UriPolicy can be used to restrict the locations the images may be loaded from. By default this will use the default UriPolicy
.
void allowInlineStyles(String tagName)
Allow inline styles on elements.
If tagName
is not specified then this allows inline styles on all elements. Otherwise tagName limits the styles to the specified elements.
void allowNavigation(UriPolicy uriPolicy)
Allows navigation elements- Form and Anchor tags, along with common attributes.
The UriPolicy can be used to restrict the locations the navigation elements are allowed to direct to. By default this will use the default UriPolicy
.
void allowSvg()
Allow SVG elements and attributes except for known bad ones.
void allowTagExtension(String tagName, String baseName, UriPolicy uriPolicy, Iterable<String> attributes, Iterable<String> uriAttributes)
Allow custom tag extensions with the specified type name and specified attributes.
This will allow tag extensions (such as <div is="x-foo"></div>), but will not allow custom tags. Use allowCustomElement
to allow custom tags.
void allowTemplating()
Allow templating elements (such as <template> and template-related attributes.
This still requires other validators to allow regular attributes to be bound (such as allowHtml5
).
void allowTextElements()
Allow basic text elements.
This allows a subset of HTML5 elements, specifically just these tags and no attributes.
- B
- BLOCKQUOTE
- BR
- EM
- H1
- H2
- H3
- H4
- H5
- H6
- HR
- I
- LI
- OL
- P
- SPAN
- UL
bool allowsAttribute(Element element, String attributeName, String value)
Returns true if the attribute is allowed.
The attributeName parameter will always be in lowercase.
See allowsElement
for format of tagName.
bool allowsElement(Element element)
Returns true if the tagName is an accepted type.
@
@
@deprecated
Class Notation extends Node
- Fields
-
publicId: String
systemId: String
- Getters and Setters
-
publicId: String
systemId: String
Fields
final String publicId
final String systemId
Getters and Setters
@
@
String get publicId
@
@
String get systemId
@
@
Class Notification extends EventTarget
- Static Fields
-
clickEvent: EventStreamProvider
closeEvent: EventStreamProvider
displayEvent: EventStreamProvider
errorEvent: EventStreamProvider
showEvent: EventStreamProvider
- Fields
-
dir: String
onClick: Stream
onClose: Stream
onDisplay: Stream
onError: Stream
onShow: Stream
permission: String
replaceId: String
tag: String
- Getters and Setters
-
dir: String
dir=(String value)
onClick: Stream<Event>
onClose: Stream<Event>
onDisplay: Stream<Event>
onError: Stream<Event>
onShow: Stream<Event>
permission: String
replaceId: String
replaceId=(String value)
tag: String
tag=(String value)
- Constructors
-
Notification(String title, String titleDir, String body, String bodyDir, String tag, String iconUrl)
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
cancel(): void
close(): void
dispatchEvent(Event event): bool
requestPermission(): Future<String>
show(): void
Static Fields
@
@
static const EventStreamProvider clickEvent
@
@
static const EventStreamProvider closeEvent
@
@
@
static const EventStreamProvider displayEvent
@
@
static const EventStreamProvider errorEvent
@
@
static const EventStreamProvider showEvent
Fields
String dir
final Stream onClick
final Stream onClose
final Stream onDisplay
final Stream onError
final Stream onShow
final String permission
String replaceId
String tag
Getters and Setters
@
@
@
String get dir
@
@
@
set dir=(String value)
@
@
Stream<Event> get onClick
@
@
Stream<Event> get onClose
@
@
@
Stream<Event> get onDisplay
@
@
Stream<Event> get onError
@
@
Stream<Event> get onShow
@
@
String get permission
@
@
@
String get replaceId
@
@
@
set replaceId=(String value)
@
@
@
String get tag
@
@
@
set tag=(String value)
Constructors
factory Notification(String title, String titleDir, String body, String bodyDir, String tag, String iconUrl)
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
@
void cancel()
@
@
void close()
@
@
bool dispatchEvent(Event event)
static Future<String> requestPermission()
@
@
@
void show()
@
@
@
@
@
@deprecated
Class NotificationCenter extends NativeFieldWrapperClass1
- Static Fields
-
supported: bool
- Getters and Setters
-
supported: bool
- Constructors
-
NotificationCenter()
- Methods
-
checkPermission(): int
createNotification(String iconUrl, String title, String body): Notification
requestPermission(): Future<dynamic>
Static Fields
static final bool supported
Getters and Setters
static bool get supported
Checks if this type is supported on the current platform.
Constructors
NotificationCenter()
Methods
@
@
int checkPermission()
@
@
Notification createNotification(String iconUrl, String title, String body)
Future<dynamic> requestPermission()
@
@
@
@
Abstract class NumberInputElement implements RangeInputElementBase
- Static Fields
-
supported: bool
- Fields
-
placeholder: String
readOnly: bool
required: bool
- Getters and Setters
-
supported: bool
- Constructors
-
NumberInputElement()
A numeric editor control.
Static Fields
static final bool supported
Fields
@
String placeholder
@
bool readOnly
@
bool required
Getters and Setters
static bool get supported
Returns true if this input type is supported on the current platform.
Constructors
factory NumberInputElement()
@
@
Class OListElement extends HtmlElement
- Fields
-
reversed: bool
start: int
type: String
- Getters and Setters
-
reversed: bool
reversed=(bool value)
start: int
start=(int value)
type: String
type=(String value)
- Constructors
-
OListElement()
Fields
bool reversed
int start
String type
Getters and Setters
@
@
bool get reversed
@
@
set reversed=(bool value)
@
@
int get start
@
@
set start=(int value)
@
@
String get type
@
@
set type=(String value)
Constructors
@
@
factory OListElement()
@
@
@
@
@
@
Class ObjectElement extends HtmlElement
- Static Fields
-
supported: bool
- Fields
-
code: String
data: String
form: FormElement
height: String
name: String
type: String
useMap: String
validationMessage: String
validity: ValidityState
width: String
willValidate: bool
- Getters and Setters
-
code: String
code=(String value)
data: String
data=(String value)
form: FormElement
height: String
height=(String value)
name: String
name=(String value)
supported: bool
type: String
type=(String value)
useMap: String
useMap=(String value)
validationMessage: String
validity: ValidityState
width: String
width=(String value)
willValidate: bool
- Constructors
-
ObjectElement()
- Methods
-
checkValidity(): bool
setCustomValidity(String error): void
Static Fields
static final bool supported
Fields
String code
String data
final FormElement form
String height
String name
String type
String useMap
final String validationMessage
final ValidityState validity
String width
final bool willValidate
Getters and Setters
@
@
@deprecated
String get code
@
@
@deprecated
set code=(String value)
@
@
String get data
@
@
set data=(String value)
@
@
FormElement get form
@
@
String get height
@
@
set height=(String value)
@
@
String get name
@
@
set name=(String value)
static bool get supported
Checks if this type is supported on the current platform.
@
@
String get type
@
@
set type=(String value)
@
@
String get useMap
@
@
set useMap=(String value)
@
@
String get validationMessage
@
@
ValidityState get validity
@
@
String get width
@
@
set width=(String value)
@
@
bool get willValidate
Constructors
@
@
factory ObjectElement()
Methods
@
@
bool checkValidity()
@
@
void setCustomValidity(String error)
@
@
Class OptGroupElement extends HtmlElement
- Fields
-
disabled: bool
label: String
- Getters and Setters
-
disabled: bool
disabled=(bool value)
label: String
label=(String value)
- Constructors
-
OptGroupElement()
Fields
bool disabled
String label
Getters and Setters
@
@
bool get disabled
@
@
set disabled=(bool value)
@
@
String get label
@
@
set label=(String value)
Constructors
@
@
factory OptGroupElement()
@
@
Class OptionElement extends HtmlElement
- Fields
-
defaultSelected: bool
disabled: bool
form: FormElement
index: int
label: String
selected: bool
value: String
- Getters and Setters
-
defaultSelected: bool
defaultSelected=(bool value)
disabled: bool
disabled=(bool value)
form: FormElement
index: int
label: String
label=(String value)
selected: bool
selected=(bool value)
value: String
value=(String value)
- Constructors
-
OptionElement(String data, String value, bool defaultSelected, bool selected)
Fields
bool defaultSelected
bool disabled
final FormElement form
final int index
String label
bool selected
String value
Getters and Setters
@
@
bool get defaultSelected
@
@
set defaultSelected=(bool value)
@
@
bool get disabled
@
@
set disabled=(bool value)
@
@
FormElement get form
@
@
int get index
@
@
String get label
@
@
set label=(String value)
@
@
bool get selected
@
@
set selected=(bool value)
@
@
String get value
@
@
set value=(String value)
Constructors
@
@
factory OptionElement(String data, String value, bool defaultSelected, bool selected)
@
@
@
@
@
Class OutputElement extends HtmlElement
- Static Fields
-
supported: bool
- Fields
-
defaultValue: String
form: FormElement
htmlFor: DomSettableTokenList
labels: List
name: String
type: String
validationMessage: String
validity: ValidityState
value: String
willValidate: bool
- Getters and Setters
-
defaultValue: String
defaultValue=(String value)
form: FormElement
htmlFor: DomSettableTokenList
labels: List<Node>
name: String
name=(String value)
supported: bool
type: String
validationMessage: String
validity: ValidityState
value: String
value=(String value)
willValidate: bool
- Constructors
-
OutputElement()
- Methods
-
checkValidity(): bool
setCustomValidity(String error): void
Static Fields
static final bool supported
Fields
String defaultValue
final FormElement form
final DomSettableTokenList htmlFor
final List labels
String name
final String type
final String validationMessage
final ValidityState validity
String value
final bool willValidate
Getters and Setters
@
@
String get defaultValue
@
@
set defaultValue=(String value)
@
@
FormElement get form
@
@
DomSettableTokenList get htmlFor
@
@
@
List<Node> get labels
@
@
String get name
@
@
set name=(String value)
static bool get supported
Checks if this type is supported on the current platform.
@
@
String get type
@
@
String get validationMessage
@
@
ValidityState get validity
@
@
String get value
@
@
set value=(String value)
@
@
bool get willValidate
Constructors
@
@
factory OutputElement()
Methods
@
@
bool checkValidity()
@
@
void setCustomValidity(String error)
@
@
@
Class OverflowEvent extends Event
- Static Fields
-
BOTH: int
HORIZONTAL: int
VERTICAL: int
- Fields
-
horizontalOverflow: bool
orient: int
verticalOverflow: bool
- Getters and Setters
-
horizontalOverflow: bool
orient: int
verticalOverflow: bool
Static Fields
@
@
static const int BOTH = 2
@
@
static const int HORIZONTAL = 0
@
@
static const int VERTICAL = 1
Fields
final bool horizontalOverflow
final int orient
final bool verticalOverflow
Getters and Setters
@
@
bool get horizontalOverflow
@
@
int get orient
@
@
bool get verticalOverflow
@
@
@
Class PageTransitionEvent extends Event
- Fields
-
persisted: bool
- Getters and Setters
-
persisted: bool
Fields
final bool persisted
Getters and Setters
@
@
bool get persisted
@
@
Class ParagraphElement extends HtmlElement
- Constructors
-
ParagraphElement()
Constructors
@
@
factory ParagraphElement()
@
@
@
Class ParamElement extends HtmlElement
- Fields
-
name: String
value: String
- Getters and Setters
-
name: String
name=(String value)
value: String
value=(String value)
- Constructors
-
ParamElement()
Fields
String name
String value
Getters and Setters
@
@
String get name
@
@
set name=(String value)
@
@
String get value
@
@
set value=(String value)
Constructors
@
@
factory ParamElement()
@
@
@
Abstract class ParentNode extends NativeFieldWrapperClass1
- Constructors
-
ParentNode()
Constructors
ParentNode()
Abstract class PasswordInputElement implements TextInputElementBase
- Constructors
-
PasswordInputElement()
Text with no line breaks (sensitive information).
Constructors
factory PasswordInputElement()
@
@
@
Class Path extends NativeFieldWrapperClass1
- Constructors
-
Path(dynamic path_OR_text)
- Methods
-
arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise): void
arcTo(num x1, num y1, num x2, num y2, num radius): void
bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y): void
closePath(): void
lineTo(num x, num y): void
moveTo(num x, num y): void
quadraticCurveTo(num cpx, num cpy, num x, num y): void
rect(num x, num y, num width, num height): void
Constructors
@
@
factory Path(dynamic path_OR_text)
Methods
@
@
void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise)
@
@
void arcTo(num x1, num y1, num x2, num y2, num radius)
@
@
void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y)
@
@
void closePath()
@
@
void lineTo(num x, num y)
@
@
void moveTo(num x, num y)
@
@
void quadraticCurveTo(num cpx, num cpy, num x, num y)
@
@
void rect(num x, num y, num width, num height)
@
@
@
@
@
Class Performance extends EventTarget
- Static Fields
-
resourceTimingBufferFullEvent: EventStreamProvider
supported: bool
- Fields
-
memory: MemoryInfo
navigation: PerformanceNavigation
onResourceTimingBufferFull: Stream
timing: PerformanceTiming
- Getters and Setters
-
memory: MemoryInfo
navigation: PerformanceNavigation
onResourceTimingBufferFull: Stream<Event>
supported: bool
timing: PerformanceTiming
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
clearMarks(String markName): void
clearMeasures(String measureName): void
clearResourceTimings(): void
dispatchEvent(Event event): bool
getEntries(): List<PerformanceEntry>
getEntriesByName(String name, String entryType): List<PerformanceEntry>
getEntriesByType(String entryType): List<PerformanceEntry>
mark(String markName): void
measure(String measureName, String startMark, String endMark): void
now(): double
setResourceTimingBufferSize(int maxSize): void
Static Fields
@
@
@
@
@
static const EventStreamProvider resourceTimingBufferFullEvent
static final bool supported
Fields
final MemoryInfo memory
final PerformanceNavigation navigation
final Stream onResourceTimingBufferFull
final PerformanceTiming timing
Getters and Setters
@
@
@
MemoryInfo get memory
@
@
PerformanceNavigation get navigation
@
@
@
Stream<Event> get onResourceTimingBufferFull
static bool get supported
Checks if this type is supported on the current platform.
@
@
PerformanceTiming get timing
Methods
@
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
@
void clearMarks(String markName)
@
@
@
void clearMeasures(String measureName)
@
@
@
@
@
void clearResourceTimings()
@
@
@
bool dispatchEvent(Event event)
@
@
@
List<PerformanceEntry> getEntries()
@
@
@
List<PerformanceEntry> getEntriesByName(String name, String entryType)
@
@
@
List<PerformanceEntry> getEntriesByType(String entryType)
@
@
@
void mark(String markName)
@
@
@
void measure(String measureName, String startMark, String endMark)
@
@
double now()
@
@
@
@
@
void setResourceTimingBufferSize(int maxSize)
@
@
@
Class PerformanceEntry extends NativeFieldWrapperClass1
- Fields
-
duration: double
entryType: String
name: String
startTime: double
- Getters and Setters
-
duration: double
entryType: String
name: String
startTime: double
- Constructors
-
PerformanceEntry()
Fields
final double duration
final String entryType
final String name
final double startTime
Getters and Setters
@
@
double get duration
@
@
String get entryType
@
@
String get name
@
@
double get startTime
Constructors
PerformanceEntry()
@
@
@
Class PerformanceMark extends PerformanceEntry
@
@
@
Class PerformanceMeasure extends PerformanceEntry
@
@
@
Class PerformanceNavigation extends NativeFieldWrapperClass1
- Static Fields
-
TYPE_BACK_FORWARD: int
TYPE_NAVIGATE: int
TYPE_RELOAD: int
TYPE_RESERVED: int
- Fields
-
redirectCount: int
type: int
- Getters and Setters
-
redirectCount: int
type: int
- Constructors
-
PerformanceNavigation()
Static Fields
@
@
static const int TYPE_BACK_FORWARD = 2
@
@
static const int TYPE_NAVIGATE = 0
@
@
static const int TYPE_RELOAD = 1
@
@
static const int TYPE_RESERVED = 255
Fields
final int redirectCount
final int type
Getters and Setters
@
@
int get redirectCount
@
@
int get type
Constructors
PerformanceNavigation()
@
@
@
Class PerformanceResourceTiming extends PerformanceEntry
- Fields
-
connectEnd: double
connectStart: double
domainLookupEnd: double
domainLookupStart: double
fetchStart: double
initiatorType: String
redirectEnd: double
redirectStart: double
requestStart: double
responseEnd: double
responseStart: double
secureConnectionStart: double
- Getters and Setters
-
connectEnd: double
connectStart: double
domainLookupEnd: double
domainLookupStart: double
fetchStart: double
initiatorType: String
redirectEnd: double
redirectStart: double
requestStart: double
responseEnd: double
responseStart: double
secureConnectionStart: double
Fields
final double connectEnd
final double connectStart
final double domainLookupEnd
final double domainLookupStart
final double fetchStart
final String initiatorType
final double redirectEnd
final double redirectStart
final double requestStart
final double responseEnd
final double responseStart
final double secureConnectionStart
Getters and Setters
@
@
double get connectEnd
@
@
double get connectStart
@
@
double get domainLookupEnd
@
@
double get domainLookupStart
@
@
double get fetchStart
@
@
String get initiatorType
@
@
double get redirectEnd
@
@
double get redirectStart
@
@
@
double get requestStart
@
@
@
double get responseEnd
@
@
@
double get responseStart
@
@
double get secureConnectionStart
@
@
@
Class PerformanceTiming extends NativeFieldWrapperClass1
- Fields
-
connectEnd: int
connectStart: int
domComplete: int
domContentLoadedEventEnd: int
domContentLoadedEventStart: int
domInteractive: int
domLoading: int
domainLookupEnd: int
domainLookupStart: int
fetchStart: int
loadEventEnd: int
loadEventStart: int
navigationStart: int
redirectEnd: int
redirectStart: int
requestStart: int
responseEnd: int
responseStart: int
secureConnectionStart: int
unloadEventEnd: int
unloadEventStart: int
- Getters and Setters
-
connectEnd: int
connectStart: int
domComplete: int
domContentLoadedEventEnd: int
domContentLoadedEventStart: int
domInteractive: int
domLoading: int
domainLookupEnd: int
domainLookupStart: int
fetchStart: int
loadEventEnd: int
loadEventStart: int
navigationStart: int
redirectEnd: int
redirectStart: int
requestStart: int
responseEnd: int
responseStart: int
secureConnectionStart: int
unloadEventEnd: int
unloadEventStart: int
- Constructors
-
PerformanceTiming()
Fields
final int connectEnd
final int connectStart
final int domComplete
final int domContentLoadedEventEnd
final int domContentLoadedEventStart
final int domInteractive
final int domLoading
final int domainLookupEnd
final int domainLookupStart
final int fetchStart
final int loadEventEnd
final int loadEventStart
final int navigationStart
final int redirectEnd
final int redirectStart
final int requestStart
final int responseEnd
final int responseStart
final int secureConnectionStart
final int unloadEventEnd
final int unloadEventStart
Getters and Setters
@
@
int get connectEnd
@
@
int get connectStart
@
@
int get domComplete
@
@
int get domContentLoadedEventEnd
@
@
int get domContentLoadedEventStart
@
@
int get domInteractive
@
@
int get domLoading
@
@
int get domainLookupEnd
@
@
int get domainLookupStart
@
@
int get fetchStart
@
@
int get loadEventEnd
@
@
int get loadEventStart
@
@
int get navigationStart
@
@
int get redirectEnd
@
@
int get redirectStart
@
@
int get requestStart
@
@
int get responseEnd
@
@
int get responseStart
@
@
int get secureConnectionStart
@
@
int get unloadEventEnd
@
@
int get unloadEventStart
Constructors
PerformanceTiming()
Class Platform
- Static Fields
-
supportsSimd: dynamic
supportsTypedData: dynamic
- Constructors
-
Platform()
- Methods
-
upgradeCustomElements(Node node): void
Static Fields
static final dynamic supportsSimd
Returns true if SIMD types in dart:typed_data types are supported on this browser. If false, using these types will generate a runtime error.
static final dynamic supportsTypedData
Returns true if dart:typed_data types are supported on this browser. If false, using these types will generate a runtime error.
Constructors
Platform()
Methods
static void upgradeCustomElements(Node node)
Upgrade all custom elements in the subtree which have not been upgraded.
This is needed to cover timing scenarios which the custom element polyfill does not cover.
This is also a workaround for dartbug.com/12642 in Dartium.
@
@
@
Class Plugin extends NativeFieldWrapperClass1
- Fields
-
description: String
filename: String
length: int
name: String
- Getters and Setters
-
description: String
filename: String
length: int
name: String
- Constructors
-
Plugin()
- Methods
-
item(int index): MimeType
namedItem(String name): MimeType
Fields
final String description
final String filename
final int length
final String name
Getters and Setters
@
@
String get description
@
@
String get filename
@
@
int get length
@
@
String get name
Constructors
Plugin()
Methods
@
@
MimeType item(int index)
@
@
MimeType namedItem(String name)
- Fields
-
first: Plugin
last: Plugin
length: int
single: Plugin
- Getters and Setters
-
first: Plugin
last: Plugin
length: int
length=(int value)
single: Plugin
- Constructors
-
PluginArray()
- Methods
-
[](int index): Plugin
[]=(int index, Plugin value): void
elementAt(int index): Plugin
item(int index): Plugin
namedItem(String name): Plugin
refresh(bool reload): void
Fields
final Plugin first
final Plugin last
int length
final Plugin single
Getters and Setters
Plugin get first
Plugin get last
@
@
int get length
set length=(int value)
Plugin get single
Constructors
PluginArray()
Methods
Plugin [](int index)
Returns the object at the given index
in the list or throws a RangeError
if index
is out of bounds.
void []=(int index, Plugin value)
Sets the value at the given index
in the list to value
or throws a RangeError
if index
is out of bounds.
Plugin elementAt(int index)
Returns the index
th element.
If this
has fewer than index
elements throws a RangeError
.
Note: if this
does not have a deterministic iteration order then the function may simply return any element without any iteration if there are at least index
elements in this
.
@
@
Plugin item(int index)
@
@
Plugin namedItem(String name)
@
@
void refresh(bool reload)
Class Point
- Fields
-
hashCode: int
magnitude: num
x: num
y: num
- Getters and Setters
-
hashCode: int
magnitude: num
- Constructors
-
Point(num x, num y)
- Methods
-
*(num factor): Point
+(Point other): Point
-(Point other): Point
==(dynamic other): bool
ceil(): Point
distanceTo(Point other): double
floor(): Point
round(): Point
squaredDistanceTo(Point other): num
toInt(): Point
toString(): String
A utility class for representing two-dimensional positions.
Fields
final int hashCode
final num magnitude
final num x
final num y
Getters and Setters
int get hashCode
num get magnitude
Get the straight line (Euclidean) distance between the origin (0, 0) and this point.
Constructors
Point(num x, num y)
Methods
Point *(num factor)
Point +(Point other)
Point -(Point other)
bool ==(dynamic other)
The equality operator.
The default behavior for all Object
s is to return true if and only if this
and other
are the same object.
Override this method to specify a different equality relation on a class. The overriding method must still be an equivalence relation. That is, it must be:
- Total: It must return a boolean for all arguments. It should never throw
or return
null
.
- Reflexive: For all objects
o
, o == o
must be true.
- Symmetric: For all objects
o1
and o2
, o1 == o2
and o2 == o1
must
either both be true, or both be false.
- Transitive: For all objects
o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then
o1 == o3
must be true.
The method should also be consistent over time, so equality of two objects should not change over time, or at least only change if one of the objects was modified.
If a subclass overrides the equality operator it should override the hashCode
method as well to maintain consistency.
Point ceil()
double distanceTo(Point other)
Returns the distance between two points.
Point floor()
Point round()
num squaredDistanceTo(Point other)
Returns the squared distance between two points.
Squared distances can be used for comparisons when the actual value is not required.
Point toInt()
Truncates x and y to integers and returns the result as a new point.
String toString()
Returns a string representation of this object.
@
@
@
@
@
@
Class PopStateEvent extends Event
- Fields
-
state: Object
- Getters and Setters
-
state: Object
Fields
final Object state
Getters and Setters
@
@
Object get state
@
@
@
Class PositionError extends NativeFieldWrapperClass1
- Static Fields
-
PERMISSION_DENIED: int
POSITION_UNAVAILABLE: int
TIMEOUT: int
- Fields
-
code: int
message: String
- Getters and Setters
-
code: int
message: String
- Constructors
-
PositionError()
Static Fields
@
@
static const int PERMISSION_DENIED = 1
@
@
static const int POSITION_UNAVAILABLE = 2
@
@
static const int TIMEOUT = 3
Fields
final int code
final String message
Getters and Setters
@
@
int get code
@
@
String get message
Constructors
PositionError()
@
@
Class PreElement extends HtmlElement
- Fields
-
wrap: bool
- Getters and Setters
-
wrap: bool
wrap=(bool value)
- Constructors
-
PreElement()
Fields
bool wrap
Getters and Setters
@
@
@deprecated
bool get wrap
@
@
@deprecated
set wrap=(bool value)
Constructors
@
@
factory PreElement()
@
@
@
Class ProcessingInstruction extends CharacterData
- Fields
-
sheet: StyleSheet
target: String
- Getters and Setters
-
sheet: StyleSheet
target: String
Fields
final StyleSheet sheet
final String target
Getters and Setters
@
@
@
StyleSheet get sheet
@
@
String get target
@
@
@
@
@
@
Class ProgressElement extends HtmlElement
- Static Fields
-
supported: bool
- Fields
-
labels: List
max: num
position: double
value: num
- Getters and Setters
-
labels: List<Node>
max: num
max=(num value)
position: double
supported: bool
value: num
value=(num value)
- Constructors
-
ProgressElement()
Static Fields
static final bool supported
Fields
final List labels
num max
final double position
num value
Getters and Setters
@
@
@
List<Node> get labels
@
@
num get max
@
@
set max=(num value)
@
@
double get position
static bool get supported
Checks if this type is supported on the current platform.
@
@
num get value
@
@
set value=(num value)
Constructors
@
@
factory ProgressElement()
@
@
Class ProgressEvent extends Event
- Fields
-
lengthComputable: bool
loaded: int
total: int
- Getters and Setters
-
lengthComputable: bool
loaded: int
total: int
Fields
final bool lengthComputable
final int loaded
final int total
Getters and Setters
@
@
bool get lengthComputable
@
@
int get loaded
@
@
int get total
@
@
@
Class Promise extends NativeFieldWrapperClass1
- Constructors
-
Promise()
- Methods
-
every(Object values): Promise
fulfill(Object value): Promise
reject(Object value): Promise
resolve(Object value): Promise
some(Object values): Promise
Constructors
Promise()
Methods
@
@
@
static Promise every(Object values)
@
@
@
static Promise fulfill(Object value)
@
@
@
static Promise reject(Object value)
@
@
@
static Promise resolve(Object value)
@
@
@
static Promise some(Object values)
@
@
@
Class PromiseResolver extends NativeFieldWrapperClass1
- Constructors
-
PromiseResolver()
- Methods
-
fulfill(Object value): void
reject(Object value): void
resolve(Object value): void
Constructors
PromiseResolver()
Methods
@
@
@
void fulfill(Object value)
@
@
@
void reject(Object value)
@
@
@
void resolve(Object value)
@
@
Class QuoteElement extends HtmlElement
- Fields
-
cite: String
- Getters and Setters
-
cite: String
cite=(String value)
- Constructors
-
QuoteElement()
Fields
String cite
Getters and Setters
@
@
String get cite
@
@
set cite=(String value)
Constructors
@
@
factory QuoteElement()
Abstract class RadioButtonInputElement implements InputElementBase
- Fields
-
checked: bool
required: bool
- Constructors
-
RadioButtonInputElement()
A control that when used with other ReadioButtonInputElement
controls forms a radio button group in which only one control can be checked at a time.
Radio buttons are considered to be in the same radio button group if:
- They are all of type 'radio'.
- They all have either the same
FormElement
owner, or no owner. - Their name attributes contain the same name.
Fields
@
bool checked
@
bool required
Constructors
factory RadioButtonInputElement()
@
@
Class Range extends NativeFieldWrapperClass1
- Static Fields
-
END_TO_END: int
END_TO_START: int
NODE_AFTER: int
NODE_BEFORE: int
NODE_BEFORE_AND_AFTER: int
NODE_INSIDE: int
START_TO_END: int
START_TO_START: int
supportsCreateContextualFragment: bool
- Fields
-
collapsed: bool
commonAncestorContainer: Node
endContainer: Node
endOffset: int
startContainer: Node
startOffset: int
- Getters and Setters
-
collapsed: bool
commonAncestorContainer: Node
endContainer: Node
endOffset: int
startContainer: Node
startOffset: int
supportsCreateContextualFragment: bool
- Constructors
-
Range()
Range.fromPoint(Point point)
- Methods
-
cloneContents(): DocumentFragment
cloneRange(): Range
collapse(bool toStart): void
compareNode(Node refNode): int
comparePoint(Node refNode, int offset): int
createContextualFragment(String html): DocumentFragment
deleteContents(): void
detach(): void
expand(String unit): void
extractContents(): DocumentFragment
getBoundingClientRect(): Rect
getClientRects(): List<Rect>
insertNode(Node newNode): void
intersectsNode(Node refNode): bool
isPointInRange(Node refNode, int offset): bool
selectNode(Node refNode): void
selectNodeContents(Node refNode): void
setEnd(Node refNode, int offset): void
setEndAfter(Node refNode): void
setEndBefore(Node refNode): void
setStart(Node refNode, int offset): void
setStartAfter(Node refNode): void
setStartBefore(Node refNode): void
surroundContents(Node newParent): void
toString(): String
Static Fields
@
@
static const int END_TO_END = 2
@
@
static const int END_TO_START = 3
@
@
@
static const int NODE_AFTER = 1
@
@
@
static const int NODE_BEFORE = 0
@
@
@
static const int NODE_BEFORE_AND_AFTER = 2
@
@
@
static const int NODE_INSIDE = 3
@
@
static const int START_TO_END = 1
@
@
static const int START_TO_START = 0
static final bool supportsCreateContextualFragment
Fields
final bool collapsed
final Node commonAncestorContainer
final Node endContainer
final int endOffset
final Node startContainer
final int startOffset
Getters and Setters
@
@
bool get collapsed
@
@
Node get commonAncestorContainer
@
@
Node get endContainer
@
@
int get endOffset
@
@
Node get startContainer
@
@
int get startOffset
static bool get supportsCreateContextualFragment
Checks if createContextualFragment is supported.
See also:
Constructors
factory Range()
factory Range.fromPoint(Point point)
Methods
@
@
DocumentFragment cloneContents()
@
@
Range cloneRange()
@
@
void collapse(bool toStart)
@
@
@deprecated
int compareNode(Node refNode)
@
@
int comparePoint(Node refNode, int offset)
@
@
DocumentFragment createContextualFragment(String html)
@
@
void deleteContents()
@
@
void detach()
@
@
@
void expand(String unit)
@
@
DocumentFragment extractContents()
@
@
Rect getBoundingClientRect()
@
@
List<Rect> getClientRects()
@
@
void insertNode(Node newNode)
@
@
@deprecated
bool intersectsNode(Node refNode)
@
@
bool isPointInRange(Node refNode, int offset)
@
@
void selectNode(Node refNode)
@
@
void selectNodeContents(Node refNode)
@
@
void setEnd(Node refNode, int offset)
@
@
void setEndAfter(Node refNode)
@
@
void setEndBefore(Node refNode)
@
@
void setStart(Node refNode, int offset)
@
@
void setStartAfter(Node refNode)
@
@
void setStartBefore(Node refNode)
@
@
void surroundContents(Node newParent)
@
@
String toString()
Returns a string representation of this object.
@
@
@
Abstract class RangeInputElement implements RangeInputElementBase
- Static Fields
-
supported: bool
- Getters and Setters
-
supported: bool
- Constructors
-
RangeInputElement()
Similar to NumberInputElement
but the browser may provide more optimal styling (such as a slider control).
Use supported to check if this is supported on the current platform.
Static Fields
static final bool supported
Getters and Setters
static bool get supported
Returns true if this input type is supported on the current platform.
Constructors
factory RangeInputElement()
Abstract class RangeInputElementBase implements InputElementBase
- Fields
-
list: Element
max: String
min: String
step: String
valueAsNumber: num
- Getters and Setters
-
list: Element
- Constructors
-
RangeInputElementBase()
- Methods
-
stepDown(int n): void
stepUp(int n): void
Base interface for all input element types which involve ranges.
Fields
final Element list
@
String max
@
String min
@
String step
@
num valueAsNumber
Getters and Setters
@
Element get list
Constructors
RangeInputElementBase()
Methods
@
void stepDown(int n)
@
void stepUp(int n)
Abstract class ReadyState
- Static Fields
-
COMPLETE: String
INTERACTIVE: String
LOADING: String
- Constructors
-
ReadyState()
Contains the set of standard values returned by HTMLDocument.getReadyState.
Static Fields
static const String COMPLETE = 'complete'
Indicates the document and all subresources have been loaded.
static const String INTERACTIVE = 'interactive'
Indicates the document is finished parsing but is still loading subresources.
static const String LOADING = 'loading'
Indicates the document is still loading and parsing.
Constructors
ReadyState()
Class ReceivePortSync
- Constructors
-
ReceivePortSync()
- Methods
-
close(): void
receive( callback): void
toSendPort(): SendPortSync
Constructors
ReceivePortSync()
Methods
void close()
void receive( callback)
SendPortSync toSendPort()
Class Rect extends RectBase
- Fields
-
height: num
left: num
top: num
width: num
- Constructors
-
Rect(num left, num top, num width, num height)
Rect.fromPoints(Point a, Point b)
A class for representing two-dimensional rectangles.
This class is distinctive from RectBase in that it enforces that its properties are immutable.
Fields
final num height
final num left
final num top
final num width
Constructors
Rect(num left, num top, num width, num height)
factory Rect.fromPoints(Point a, Point b)
Abstract class RectBase
- Fields
-
bottom: num
bottomRight: Point
hashCode: int
height: num
left: num
right: num
top: num
topLeft: Point
width: num
- Getters and Setters
-
bottom: num
bottomRight: Point
hashCode: int
height: num
left: num
right: num
top: num
topLeft: Point
width: num
- Constructors
-
RectBase()
- Methods
-
==(dynamic other): bool
ceil(): Rect
containsPoint(Point another): bool
containsRect(Rect another): bool
floor(): Rect
intersection(Rect rect): Rect
intersects(Rect other): bool
round(): Rect
toInt(): Rect
toString(): String
union(Rect rect): Rect
A base class for representing two-dimensional rectangles. This will hopefully be moved merged with the dart:math Rect.
Fields
final num bottom
final Point bottomRight
final int hashCode
final num height
final num left
final num right
final num top
final Point topLeft
final num width
Getters and Setters
num get bottom
Point get bottomRight
int get hashCode
num get height
num get left
num get right
num get top
Point get topLeft
num get width
Constructors
RectBase()
Methods
bool ==(dynamic other)
The equality operator.
The default behavior for all Object
s is to return true if and only if this
and other
are the same object.
Override this method to specify a different equality relation on a class. The overriding method must still be an equivalence relation. That is, it must be:
- Total: It must return a boolean for all arguments. It should never throw
or return
null
.
- Reflexive: For all objects
o
, o == o
must be true.
- Symmetric: For all objects
o1
and o2
, o1 == o2
and o2 == o1
must
either both be true, or both be false.
- Transitive: For all objects
o1
, o2
, and o3
, if o1 == o2
and
o2 == o3
are true, then
o1 == o3
must be true.
The method should also be consistent over time, so equality of two objects should not change over time, or at least only change if one of the objects was modified.
If a subclass overrides the equality operator it should override the hashCode
method as well to maintain consistency.
Rect ceil()
bool containsPoint(Point another)
Tests whether this rectangle entirely contains a point.
bool containsRect(Rect another)
Tests whether this rectangle entirely contains another rectangle.
Rect floor()
Rect intersection(Rect rect)
Computes the intersection of this rectangle and the rectangle parameter. Returns null if there is no intersection.
bool intersects(Rect other)
Returns whether a rectangle intersects this rectangle.
Rect round()
Rect toInt()
Truncates coordinates to integers and returns the result as a new rectangle.
String toString()
Returns a string representation of this object.
Rect union(Rect rect)
Returns a new rectangle which completely contains this rectangle and the input rectangle.
Abstract class ResetButtonInputElement implements InputElementBase
- Constructors
-
ResetButtonInputElement()
A button, which when clicked, resets the form.
Constructors
factory ResetButtonInputElement()
@
@
@deprecated
Class ResourceProgressEvent extends ProgressEvent
- Fields
-
url: String
- Getters and Setters
-
url: String
Fields
final String url
Getters and Setters
@
@
String get url
@
@
@
Class RsaKeyGenParams extends Algorithm
- Fields
-
modulusLength: int
publicExponent: Uint8List
- Getters and Setters
-
modulusLength: int
publicExponent: Uint8List
Fields
final int modulusLength
final Uint8List publicExponent
Getters and Setters
@
@
@
int get modulusLength
@
@
@
Uint8List get publicExponent
@
@
@
Class RsaSsaParams extends Algorithm
- Fields
-
hash: Algorithm
- Getters and Setters
-
hash: Algorithm
Fields
final Algorithm hash
Getters and Setters
@
@
@
Algorithm get hash
@
@
@
Class RtcDataChannel extends EventTarget
- Static Fields
-
closeEvent: EventStreamProvider
errorEvent: EventStreamProvider
messageEvent: EventStreamProvider
openEvent: EventStreamProvider
- Fields
-
binaryType: String
bufferedAmount: int
id: int
label: String
maxRetransmitTime: int
maxRetransmits: int
negotiated: bool
onClose: Stream
onError: Stream
onMessage: Stream
onOpen: Stream
ordered: bool
protocol: String
readyState: String
reliable: bool
- Getters and Setters
-
binaryType: String
binaryType=(String value)
bufferedAmount: int
id: int
label: String
maxRetransmitTime: int
maxRetransmits: int
negotiated: bool
onClose: Stream<Event>
onError: Stream<Event>
onMessage: Stream<MessageEvent>
onOpen: Stream<Event>
ordered: bool
protocol: String
readyState: String
reliable: bool
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
close(): void
dispatchEvent(Event event): bool
send(dynamic data): void
sendBlob(Blob data): void
sendByteBuffer(ByteBuffer data): void
sendString(String data): void
sendTypedData(TypedData data): void
Static Fields
@
@
static const EventStreamProvider closeEvent
@
@
static const EventStreamProvider errorEvent
@
@
static const EventStreamProvider messageEvent
@
@
static const EventStreamProvider openEvent
Fields
String binaryType
final int bufferedAmount
final int id
final String label
final int maxRetransmitTime
final int maxRetransmits
final bool negotiated
final Stream onClose
final Stream onError
final Stream onMessage
final Stream onOpen
final bool ordered
final String protocol
final String readyState
final bool reliable
Getters and Setters
@
@
String get binaryType
@
@
set binaryType=(String value)
@
@
int get bufferedAmount
@
@
@
int get id
@
@
String get label
@
@
@
int get maxRetransmitTime
@
@
@
int get maxRetransmits
@
@
@
bool get negotiated
@
@
Stream<Event> get onClose
@
@
Stream<Event> get onError
@
@
Stream<MessageEvent> get onMessage
@
@
Stream<Event> get onOpen
@
@
@
bool get ordered
@
@
@
String get protocol
@
@
String get readyState
@
@
bool get reliable
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
void close()
@
@
bool dispatchEvent(Event event)
void send(dynamic data)
@
@
void sendBlob(Blob data)
@
@
void sendByteBuffer(ByteBuffer data)
@
@
void sendString(String data)
@
@
void sendTypedData(TypedData data)
@
@
@
Class RtcDataChannelEvent extends Event
- Fields
-
channel: RtcDataChannel
- Getters and Setters
-
channel: RtcDataChannel
Fields
final RtcDataChannel channel
Getters and Setters
@
@
RtcDataChannel get channel
@
@
@
Class RtcDtmfSender extends EventTarget
- Static Fields
-
toneChangeEvent: EventStreamProvider
- Fields
-
canInsertDtmf: bool
duration: int
interToneGap: int
onToneChange: Stream
toneBuffer: String
track: MediaStreamTrack
- Getters and Setters
-
canInsertDtmf: bool
duration: int
interToneGap: int
onToneChange: Stream<RtcDtmfToneChangeEvent>
toneBuffer: String
track: MediaStreamTrack
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
dispatchEvent(Event event): bool
insertDtmf(String tones, int duration, int interToneGap): void
Static Fields
@
@
static const EventStreamProvider toneChangeEvent
Fields
final bool canInsertDtmf
final int duration
final int interToneGap
final Stream onToneChange
final String toneBuffer
final MediaStreamTrack track
Getters and Setters
@
@
bool get canInsertDtmf
@
@
int get duration
@
@
int get interToneGap
@
@
Stream<RtcDtmfToneChangeEvent> get onToneChange
@
@
String get toneBuffer
@
@
MediaStreamTrack get track
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
bool dispatchEvent(Event event)
void insertDtmf(String tones, int duration, int interToneGap)
@
@
@
Class RtcDtmfToneChangeEvent extends Event
- Fields
-
tone: String
- Getters and Setters
-
tone: String
Fields
final String tone
Getters and Setters
@
@
String get tone
@
@
@
@
Class RtcIceCandidate extends NativeFieldWrapperClass1
- Fields
-
candidate: String
sdpMLineIndex: int
sdpMid: String
- Getters and Setters
-
candidate: String
sdpMLineIndex: int
sdpMid: String
- Constructors
-
RtcIceCandidate(Map<dynamic, dynamic> dictionary)
Fields
final String candidate
final int sdpMLineIndex
final String sdpMid
Getters and Setters
@
@
String get candidate
@
@
int get sdpMLineIndex
@
@
String get sdpMid
Constructors
@
@
factory RtcIceCandidate(Map<dynamic, dynamic> dictionary)
@
@
@
Class RtcIceCandidateEvent extends Event
- Fields
-
candidate: RtcIceCandidate
- Getters and Setters
-
candidate: RtcIceCandidate
Fields
final RtcIceCandidate candidate
Getters and Setters
@
@
RtcIceCandidate get candidate
@
@
@
Class RtcPeerConnection extends EventTarget
- Static Fields
-
addStreamEvent: EventStreamProvider
dataChannelEvent: EventStreamProvider
iceCandidateEvent: EventStreamProvider
iceConnectionStateChangeEvent: EventStreamProvider
negotiationNeededEvent: EventStreamProvider
removeStreamEvent: EventStreamProvider
signalingStateChangeEvent: EventStreamProvider
supported: bool
- Fields
-
iceConnectionState: String
iceGatheringState: String
localDescription: RtcSessionDescription
onAddStream: Stream
onDataChannel: Stream
onIceCandidate: Stream
onIceConnectionStateChange: Stream
onNegotiationNeeded: Stream
onRemoveStream: Stream
onSignalingStateChange: Stream
remoteDescription: RtcSessionDescription
signalingState: String
- Getters and Setters
-
iceConnectionState: String
iceGatheringState: String
localDescription: RtcSessionDescription
onAddStream: Stream<MediaStreamEvent>
onDataChannel: Stream<RtcDataChannelEvent>
onIceCandidate: Stream<RtcIceCandidateEvent>
onIceConnectionStateChange: Stream<Event>
onNegotiationNeeded: Stream<Event>
onRemoveStream: Stream<MediaStreamEvent>
onSignalingStateChange: Stream<Event>
remoteDescription: RtcSessionDescription
signalingState: String
supported: bool
- Constructors
-
RtcPeerConnection(Map<dynamic, dynamic> rtcIceServers, Map<dynamic, dynamic> mediaConstraints)
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
addIceCandidate(RtcIceCandidate candidate): void
addStream(MediaStream stream, Map<dynamic, dynamic> mediaConstraints): void
close(): void
createAnswer(Map<dynamic, dynamic> mediaConstraints): Future<RtcSessionDescription>
createDataChannel(String label, Map<dynamic, dynamic> options): RtcDataChannel
createDtmfSender(MediaStreamTrack track): RtcDtmfSender
createOffer(Map<dynamic, dynamic> mediaConstraints): Future<RtcSessionDescription>
dispatchEvent(Event event): bool
getLocalStreams(): List<MediaStream>
getRemoteStreams(): List<MediaStream>
getStats(RtcStatsCallback successCallback, MediaStreamTrack selector): void
getStreamById(String streamId): MediaStream
removeStream(MediaStream stream): void
setLocalDescription(RtcSessionDescription description): Future<dynamic>
setRemoteDescription(RtcSessionDescription description): Future<dynamic>
updateIce(Map<dynamic, dynamic> configuration, Map<dynamic, dynamic> mediaConstraints): void
Static Fields
@
@
static const EventStreamProvider addStreamEvent
@
@
static const EventStreamProvider dataChannelEvent
@
@
static const EventStreamProvider iceCandidateEvent
@
@
static const EventStreamProvider iceConnectionStateChangeEvent
@
@
static const EventStreamProvider negotiationNeededEvent
@
@
static const EventStreamProvider removeStreamEvent
@
@
static const EventStreamProvider signalingStateChangeEvent
static final bool supported
Fields
final String iceConnectionState
final String iceGatheringState
final RtcSessionDescription localDescription
final Stream onAddStream
final Stream onDataChannel
final Stream onIceCandidate
final Stream onIceConnectionStateChange
final Stream onNegotiationNeeded
final Stream onRemoveStream
final Stream onSignalingStateChange
final RtcSessionDescription remoteDescription
final String signalingState
Getters and Setters
@
@
String get iceConnectionState
@
@
String get iceGatheringState
@
@
RtcSessionDescription get localDescription
@
@
Stream<MediaStreamEvent> get onAddStream
@
@
Stream<RtcDataChannelEvent> get onDataChannel
@
@
Stream<RtcIceCandidateEvent> get onIceCandidate
@
@
Stream<Event> get onIceConnectionStateChange
@
@
Stream<Event> get onNegotiationNeeded
@
@
Stream<MediaStreamEvent> get onRemoveStream
@
@
Stream<Event> get onSignalingStateChange
@
@
RtcSessionDescription get remoteDescription
@
@
String get signalingState
static bool get supported
Checks if Real Time Communication (RTC) APIs are supported and enabled on the current platform.
Constructors
@
@
factory RtcPeerConnection(Map<dynamic, dynamic> rtcIceServers, Map<dynamic, dynamic> mediaConstraints)
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
void addIceCandidate(RtcIceCandidate candidate)
@
@
void addStream(MediaStream stream, Map<dynamic, dynamic> mediaConstraints)
@
@
void close()
Future<RtcSessionDescription> createAnswer(Map<dynamic, dynamic> mediaConstraints)
@
@
RtcDataChannel createDataChannel(String label, Map<dynamic, dynamic> options)
@
@
RtcDtmfSender createDtmfSender(MediaStreamTrack track)
Future<RtcSessionDescription> createOffer(Map<dynamic, dynamic> mediaConstraints)
@
@
bool dispatchEvent(Event event)
@
@
List<MediaStream> getLocalStreams()
@
@
List<MediaStream> getRemoteStreams()
@
@
void getStats(RtcStatsCallback successCallback, MediaStreamTrack selector)
@
@
MediaStream getStreamById(String streamId)
@
@
void removeStream(MediaStream stream)
Future<dynamic> setLocalDescription(RtcSessionDescription description)
Future<dynamic> setRemoteDescription(RtcSessionDescription description)
@
@
void updateIce(Map<dynamic, dynamic> configuration, Map<dynamic, dynamic> mediaConstraints)
@
@
@
@
Class RtcSessionDescription extends NativeFieldWrapperClass1
- Fields
-
sdp: String
type: String
- Getters and Setters
-
sdp: String
sdp=(String value)
type: String
type=(String value)
- Constructors
-
RtcSessionDescription(Map<dynamic, dynamic> dictionary)
Fields
String sdp
String type
Getters and Setters
@
@
String get sdp
@
@
set sdp=(String value)
@
@
String get type
@
@
set type=(String value)
Constructors
@
@
factory RtcSessionDescription(Map<dynamic, dynamic> dictionary)
@
@
@
Class RtcStatsReport extends NativeFieldWrapperClass1
- Fields
-
id: String
local: RtcStatsReport
remote: RtcStatsReport
timestamp: DateTime
type: String
- Getters and Setters
-
id: String
local: RtcStatsReport
remote: RtcStatsReport
timestamp: DateTime
type: String
- Constructors
-
RtcStatsReport()
- Methods
-
names(): List<String>
stat(String name): String
Fields
final String id
final RtcStatsReport local
final RtcStatsReport remote
final DateTime timestamp
final String type
Getters and Setters
@
@
String get id
@
@
RtcStatsReport get local
@
@
RtcStatsReport get remote
@
@
DateTime get timestamp
@
@
String get type
Constructors
RtcStatsReport()
Methods
@
@
List<String> names()
@
@
String stat(String name)
@
@
@
Class RtcStatsResponse extends NativeFieldWrapperClass1
- Constructors
-
RtcStatsResponse()
- Methods
-
namedItem(String name): RtcStatsReport
result(): List<RtcStatsReport>
Constructors
RtcStatsResponse()
Methods
@
@
RtcStatsReport namedItem(String name)
@
@
List<RtcStatsReport> result()
@
@
Class Screen extends NativeFieldWrapperClass1
- Fields
-
available: Rect
colorDepth: int
height: int
pixelDepth: int
width: int
- Getters and Setters
-
available: Rect
colorDepth: int
height: int
pixelDepth: int
width: int
- Constructors
-
Screen()
Fields
final Rect available
final int colorDepth
final int height
final int pixelDepth
final int width
Getters and Setters
@
@
@
@
Rect get available
@
@
int get colorDepth
@
@
int get height
@
@
int get pixelDepth
@
@
int get width
Constructors
Screen()
@
@
Class ScriptElement extends HtmlElement
- Fields
-
async: bool
charset: String
crossOrigin: String
defer: bool
event: String
htmlFor: String
nonce: String
src: String
type: String
- Getters and Setters
-
async: bool
async=(bool value)
charset: String
charset=(String value)
crossOrigin: String
crossOrigin=(String value)
defer: bool
defer=(bool value)
event: String
event=(String value)
htmlFor: String
htmlFor=(String value)
nonce: String
nonce=(String value)
src: String
src=(String value)
type: String
type=(String value)
- Constructors
-
ScriptElement()
Fields
bool async
String charset
String crossOrigin
bool defer
String event
String htmlFor
String nonce
String src
String type
Getters and Setters
@
@
bool get async
@
@
set async=(bool value)
@
@
String get charset
@
@
set charset=(String value)
@
@
@
String get crossOrigin
@
@
@
set crossOrigin=(String value)
@
@
bool get defer
@
@
set defer=(bool value)
@
@
@deprecated
String get event
@
@
@deprecated
set event=(String value)
@
@
@deprecated
String get htmlFor
@
@
@deprecated
set htmlFor=(String value)
@
@
@
String get nonce
@
@
@
set nonce=(String value)
@
@
String get src
@
@
set src=(String value)
@
@
String get type
@
@
set type=(String value)
Constructors
@
@
factory ScriptElement()
Class ScrollAlignment
- Static Fields
-
BOTTOM: dynamic
CENTER: dynamic
TOP: dynamic
- Methods
-
toString(): dynamic
Options for Element.scrollIntoView.
Static Fields
static const dynamic BOTTOM
Attempt to align the element to the bottom of the scrollable area.
static const dynamic CENTER
Attempt to center the element in the scrollable area.
static const dynamic TOP
Attempt to align the element to the top of the scrollable area.
Methods
dynamic toString()
Returns a string representation of this object.
@
@
@
@
Abstract class SearchInputElement implements TextInputElementBase
- Static Fields
-
supported: bool
- Fields
-
dirName: String
list: Element
- Getters and Setters
-
list: Element
supported: bool
- Constructors
-
SearchInputElement()
Similar to TextInputElement
, but on platforms where search is styled differently this will get the search style.
Use supported to check if this is supported on the current platform.
Static Fields
static final bool supported
Fields
@
String dirName
final Element list
Getters and Setters
@
Element get list
static bool get supported
Returns true if this input type is supported on the current platform.
Constructors
factory SearchInputElement()
@
@
@
Class SecurityPolicy extends NativeFieldWrapperClass1
- Fields
-
allowsEval: bool
allowsInlineScript: bool
allowsInlineStyle: bool
isActive: bool
reportURIs: List
- Getters and Setters
-
allowsEval: bool
allowsInlineScript: bool
allowsInlineStyle: bool
isActive: bool
reportURIs: List<String>
- Constructors
-
SecurityPolicy()
- Methods
-
allowsConnectionTo(String url): bool
allowsFontFrom(String url): bool
allowsFormAction(String url): bool
allowsFrameFrom(String url): bool
allowsImageFrom(String url): bool
allowsMediaFrom(String url): bool
allowsObjectFrom(String url): bool
allowsPluginType(String type): bool
allowsScriptFrom(String url): bool
allowsStyleFrom(String url): bool
Fields
final bool allowsEval
final bool allowsInlineScript
final bool allowsInlineStyle
final bool isActive
final List reportURIs
Getters and Setters
@
@
bool get allowsEval
@
@
bool get allowsInlineScript
@
@
bool get allowsInlineStyle
@
@
bool get isActive
@
@
List<String> get reportURIs
Constructors
SecurityPolicy()
Methods
@
@
bool allowsConnectionTo(String url)
@
@
bool allowsFontFrom(String url)
@
@
bool allowsFormAction(String url)
@
@
bool allowsFrameFrom(String url)
@
@
bool allowsImageFrom(String url)
@
@
bool allowsMediaFrom(String url)
@
@
bool allowsObjectFrom(String url)
@
@
bool allowsPluginType(String type)
@
@
bool allowsScriptFrom(String url)
@
@
bool allowsStyleFrom(String url)
@
@
@
Class SecurityPolicyViolationEvent extends Event
- Fields
-
blockedUri: String
columnNumber: int
documentUri: String
effectiveDirective: String
lineNumber: int
originalPolicy: String
referrer: String
sourceFile: String
statusCode: int
violatedDirective: String
- Getters and Setters
-
blockedUri: String
columnNumber: int
documentUri: String
effectiveDirective: String
lineNumber: int
originalPolicy: String
referrer: String
sourceFile: String
statusCode: int
violatedDirective: String
Fields
final String blockedUri
final int columnNumber
final String documentUri
final String effectiveDirective
final int lineNumber
final String originalPolicy
final String referrer
final String sourceFile
final int statusCode
final String violatedDirective
Getters and Setters
@
@
String get blockedUri
@
@
int get columnNumber
@
@
String get documentUri
@
@
String get effectiveDirective
@
@
int get lineNumber
@
@
String get originalPolicy
@
@
String get referrer
@
@
String get sourceFile
@
@
@
int get statusCode
@
@
String get violatedDirective
@
Class SelectElement extends HtmlElement
- Fields
-
autofocus: bool
disabled: bool
form: FormElement
labels: List
length: int
multiple: bool
name: String
options: List
required: bool
selectedIndex: int
selectedOptions: List
size: int
type: String
validationMessage: String
validity: ValidityState
value: String
willValidate: bool
- Getters and Setters
-
autofocus: bool
autofocus=(bool value)
disabled: bool
disabled=(bool value)
form: FormElement
labels: List<Node>
length: int
length=(int value)
multiple: bool
multiple=(bool value)
name: String
name=(String value)
options: List<OptionElement>
required: bool
required=(bool value)
selectedIndex: int
selectedIndex=(int value)
selectedOptions: List<OptionElement>
size: int
size=(int value)
type: String
validationMessage: String
validity: ValidityState
value: String
value=(String value)
willValidate: bool
- Constructors
-
SelectElement()
- Methods
-
checkValidity(): bool
item(int index): Node
namedItem(String name): Node
setCustomValidity(String error): void
Fields
bool autofocus
bool disabled
final FormElement form
final List labels
int length
bool multiple
String name
final List options
bool required
int selectedIndex
final List selectedOptions
int size
final String type
final String validationMessage
final ValidityState validity
String value
final bool willValidate
Getters and Setters
@
@
bool get autofocus
@
@
set autofocus=(bool value)
@
@
bool get disabled
@
@
set disabled=(bool value)
@
@
FormElement get form
@
@
@
List<Node> get labels
@
@
int get length
@
@
set length=(int value)
@
@
bool get multiple
@
@
set multiple=(bool value)
@
@
String get name
@
@
set name=(String value)
List<OptionElement> get options
@
@
bool get required
@
@
set required=(bool value)
@
@
int get selectedIndex
@
@
set selectedIndex=(int value)
List<OptionElement> get selectedOptions
@
@
int get size
@
@
set size=(int value)
@
@
String get type
@
@
String get validationMessage
@
@
ValidityState get validity
@
@
String get value
@
@
set value=(String value)
@
@
bool get willValidate
Constructors
@
@
factory SelectElement()
Methods
@
@
bool checkValidity()
@
@
Node item(int index)
@
@
Node namedItem(String name)
@
@
void setCustomValidity(String error)
@
@
Class Selection extends NativeFieldWrapperClass1
- Fields
-
anchorNode: Node
anchorOffset: int
baseNode: Node
baseOffset: int
extentNode: Node
extentOffset: int
focusNode: Node
focusOffset: int
isCollapsed: bool
rangeCount: int
type: String
- Getters and Setters
-
anchorNode: Node
anchorOffset: int
baseNode: Node
baseOffset: int
extentNode: Node
extentOffset: int
focusNode: Node
focusOffset: int
isCollapsed: bool
rangeCount: int
type: String
- Constructors
-
Selection()
- Methods
-
addRange(Range range): void
collapse(Node node, int index): void
collapseToEnd(): void
collapseToStart(): void
containsNode(Node node, bool allowPartial): bool
deleteFromDocument(): void
empty(): void
extend(Node node, int offset): void
getRangeAt(int index): Range
modify(String alter, String direction, String granularity): void
removeAllRanges(): void
selectAllChildren(Node node): void
setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int extentOffset): void
setPosition(Node node, int offset): void
toString(): String
Fields
final Node anchorNode
final int anchorOffset
final Node baseNode
final int baseOffset
final Node extentNode
final int extentOffset
final Node focusNode
final int focusOffset
final bool isCollapsed
final int rangeCount
final String type
Getters and Setters
@
@
Node get anchorNode
@
@
int get anchorOffset
@
@
@
Node get baseNode
@
@
@
int get baseOffset
@
@
@
Node get extentNode
@
@
@
int get extentOffset
@
@
Node get focusNode
@
@
int get focusOffset
@
@
bool get isCollapsed
@
@
int get rangeCount
@
@
@
String get type
Constructors
Selection()
Methods
@
@
void addRange(Range range)
@
@
void collapse(Node node, int index)
@
@
void collapseToEnd()
@
@
void collapseToStart()
@
@
@
bool containsNode(Node node, bool allowPartial)
@
@
void deleteFromDocument()
@
@
@
void empty()
@
@
void extend(Node node, int offset)
@
@
Range getRangeAt(int index)
@
@
@
void modify(String alter, String direction, String granularity)
@
@
void removeAllRanges()
@
@
void selectAllChildren(Node node)
@
@
@
void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int extentOffset)
@
@
@
void setPosition(Node node, int offset)
@
@
String toString()
Returns a string representation of this object.
@
@
@
@
Class ShadowElement extends HtmlElement
- Static Fields
-
supported: bool
- Fields
-
olderShadowRoot: ShadowRoot
resetStyleInheritance: bool
- Getters and Setters
-
olderShadowRoot: ShadowRoot
resetStyleInheritance: bool
resetStyleInheritance=(bool value)
supported: bool
- Constructors
-
ShadowElement()
Static Fields
static final bool supported
Fields
final ShadowRoot olderShadowRoot
bool resetStyleInheritance
Getters and Setters
@
@
ShadowRoot get olderShadowRoot
@
@
bool get resetStyleInheritance
@
@
set resetStyleInheritance=(bool value)
static bool get supported
Checks if this type is supported on the current platform.
Constructors
@
@
factory ShadowElement()
- Static Fields
-
supported: bool
- Fields
-
activeElement: Element
applyAuthorStyles: bool
innerHtml: String
olderShadowRoot: ShadowRoot
resetStyleInheritance: bool
- Getters and Setters
-
activeElement: Element
applyAuthorStyles: bool
applyAuthorStyles=(bool value)
innerHtml: String
innerHtml=(String value)
olderShadowRoot: ShadowRoot
resetStyleInheritance: bool
resetStyleInheritance=(bool value)
- Methods
-
clone(bool deep): Node
elementFromPoint(int x, int y): Element
getElementById(String elementId): Element
getElementsByClassName(String className): List<Node>
getElementsByTagName(String tagName): List<Node>
getSelection(): Selection
Static Fields
static final bool supported
Fields
final Element activeElement
bool applyAuthorStyles
String innerHtml
final ShadowRoot olderShadowRoot
bool resetStyleInheritance
Getters and Setters
@
@
Element get activeElement
@
@
bool get applyAuthorStyles
@
@
set applyAuthorStyles=(bool value)
@
@
String get innerHtml
@
@
set innerHtml=(String value)
@
@
@
ShadowRoot get olderShadowRoot
@
@
bool get resetStyleInheritance
@
@
set resetStyleInheritance=(bool value)
Methods
@
@
Node clone(bool deep)
@
@
Element elementFromPoint(int x, int y)
@
@
Element getElementById(String elementId)
@
@
List<Node> getElementsByClassName(String className)
@
@
List<Node> getElementsByTagName(String tagName)
@
@
Selection getSelection()
@
@
@
Class SharedWorkerGlobalScope extends WorkerGlobalScope
- Static Fields
-
connectEvent: EventStreamProvider
- Fields
-
name: String
onConnect: Stream
- Getters and Setters
-
name: String
onConnect: Stream<Event>
Static Fields
@
@
@
static const EventStreamProvider connectEvent
Fields
final String name
final Stream onConnect
Getters and Setters
@
@
@
String get name
@
@
@
Stream<Event> get onConnect
@
@
@
Class SourceBuffer extends EventTarget
- Fields
-
appendWindowEnd: num
appendWindowStart: num
buffered: TimeRanges
timestampOffset: num
updating: bool
- Getters and Setters
-
appendWindowEnd: num
appendWindowEnd=(num value)
appendWindowStart: num
appendWindowStart=(num value)
buffered: TimeRanges
timestampOffset: num
timestampOffset=(num value)
updating: bool
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
abort(): void
appendBuffer(ByteBuffer data): void
appendBufferView(TypedData data): void
dispatchEvent(Event event): bool
remove(num start, num end): void
Fields
num appendWindowEnd
num appendWindowStart
final TimeRanges buffered
num timestampOffset
final bool updating
Getters and Setters
@
@
@
num get appendWindowEnd
@
@
@
set appendWindowEnd=(num value)
@
@
@
num get appendWindowStart
@
@
@
set appendWindowStart=(num value)
@
@
TimeRanges get buffered
@
@
num get timestampOffset
@
@
set timestampOffset=(num value)
@
@
@
bool get updating
Methods
@
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
void abort()
@
@
@
void appendBuffer(ByteBuffer data)
@
@
@
void appendBufferView(TypedData data)
@
@
@
bool dispatchEvent(Event event)
@
@
@
void remove(num start, num end)
- Fields
-
first: SourceBuffer
last: SourceBuffer
length: int
single: SourceBuffer
- Getters and Setters
-
first: SourceBuffer
last: SourceBuffer
length: int
length=(int value)
single: SourceBuffer
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
[](int index): SourceBuffer
[]=(int index, SourceBuffer value): void
dispatchEvent(Event event): bool
elementAt(int index): SourceBuffer
item(int index): SourceBuffer
Fields
final SourceBuffer first
final SourceBuffer last
int length
final SourceBuffer single
Getters and Setters
SourceBuffer get first
SourceBuffer get last
@
@
int get length
set length=(int value)
SourceBuffer get single
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
SourceBuffer [](int index)
Returns the object at the given index
in the list or throws a RangeError
if index
is out of bounds.
void []=(int index, SourceBuffer value)
Sets the value at the given index
in the list to value
or throws a RangeError
if index
is out of bounds.
@
@
bool dispatchEvent(Event event)
SourceBuffer elementAt(int index)
Returns the index
th element.
If this
has fewer than index
elements throws a RangeError
.
Note: if this
does not have a deterministic iteration order then the function may simply return any element without any iteration if there are at least index
elements in this
.
@
@
SourceBuffer item(int index)
@
@
Class SourceElement extends HtmlElement
- Fields
-
media: String
src: String
type: String
- Getters and Setters
-
media: String
media=(String value)
src: String
src=(String value)
type: String
type=(String value)
- Constructors
-
SourceElement()
Fields
String media
String src
String type
Getters and Setters
@
@
String get media
@
@
set media=(String value)
@
@
String get src
@
@
set src=(String value)
@
@
String get type
@
@
set type=(String value)
Constructors
@
@
factory SourceElement()
@
@
@
Class SourceInfo extends NativeFieldWrapperClass1
- Fields
-
facing: String
id: String
kind: String
label: String
- Getters and Setters
-
facing: String
id: String
kind: String
label: String
- Constructors
-
SourceInfo()
Fields
final String facing
final String id
final String kind
final String label
Getters and Setters
@
@
@
String get facing
@
@
@
String get id
@
@
@
String get kind
@
@
@
String get label
Constructors
SourceInfo()
@
@
Class SpanElement extends HtmlElement
- Constructors
-
SpanElement()
Constructors
@
@
factory SpanElement()
@
@
@
Class SpeechGrammar extends NativeFieldWrapperClass1
- Fields
-
src: String
weight: num
- Getters and Setters
-
src: String
src=(String value)
weight: num
weight=(num value)
- Constructors
-
SpeechGrammar()
Fields
String src
num weight
Getters and Setters
@
@
String get src
@
@
set src=(String value)
@
@
num get weight
@
@
set weight=(num value)
Constructors
@
@
factory SpeechGrammar()
- Fields
-
first: SpeechGrammar
last: SpeechGrammar
length: int
single: SpeechGrammar
- Getters and Setters
-
first: SpeechGrammar
last: SpeechGrammar
length: int
length=(int value)
single: SpeechGrammar
- Constructors
-
SpeechGrammarList()
- Methods
-
[](int index): SpeechGrammar
[]=(int index, SpeechGrammar value): void
addFromString(String string, num weight): void
addFromUri(String src, num weight): void
elementAt(int index): SpeechGrammar
item(int index): SpeechGrammar
Fields
final SpeechGrammar first
final SpeechGrammar last
int length
final SpeechGrammar single
Getters and Setters
SpeechGrammar get first
SpeechGrammar get last
@
@
int get length
set length=(int value)
SpeechGrammar get single
Constructors
@
@
factory SpeechGrammarList()
Methods
SpeechGrammar [](int index)
Returns the object at the given index
in the list or throws a RangeError
if index
is out of bounds.
void []=(int index, SpeechGrammar value)
Sets the value at the given index
in the list to value
or throws a RangeError
if index
is out of bounds.
void addFromString(String string, num weight)
void addFromUri(String src, num weight)
SpeechGrammar elementAt(int index)
Returns the index
th element.
If this
has fewer than index
elements throws a RangeError
.
Note: if this
does not have a deterministic iteration order then the function may simply return any element without any iteration if there are at least index
elements in this
.
@
@
SpeechGrammar item(int index)
@
@
@
Class SpeechInputEvent extends Event
- Fields
-
results: List
- Getters and Setters
-
results: List<SpeechInputResult>
Fields
final List results
Getters and Setters
@
@
List<SpeechInputResult> get results
@
@
@
Class SpeechInputResult extends NativeFieldWrapperClass1
- Fields
-
confidence: double
utterance: String
- Getters and Setters
-
confidence: double
utterance: String
- Constructors
-
SpeechInputResult()
Fields
final double confidence
final String utterance
Getters and Setters
@
@
double get confidence
@
@
String get utterance
Constructors
SpeechInputResult()
@
@
@
@
Class SpeechRecognition extends EventTarget
- Static Fields
-
audioEndEvent: EventStreamProvider
audioStartEvent: EventStreamProvider
endEvent: EventStreamProvider
errorEvent: EventStreamProvider
noMatchEvent: EventStreamProvider
resultEvent: EventStreamProvider
soundEndEvent: EventStreamProvider
soundStartEvent: EventStreamProvider
speechEndEvent: EventStreamProvider
speechStartEvent: EventStreamProvider
startEvent: EventStreamProvider
supported: bool
- Fields
-
continuous: bool
grammars: SpeechGrammarList
interimResults: bool
lang: String
maxAlternatives: int
onAudioEnd: Stream
onAudioStart: Stream
onEnd: Stream
onError: Stream
onNoMatch: Stream
onResult: Stream
onSoundEnd: Stream
onSoundStart: Stream
onSpeechEnd: Stream
onSpeechStart: Stream
onStart: Stream
- Getters and Setters
-
continuous: bool
continuous=(bool value)
grammars: SpeechGrammarList
grammars=(SpeechGrammarList value)
interimResults: bool
interimResults=(bool value)
lang: String
lang=(String value)
maxAlternatives: int
maxAlternatives=(int value)
onAudioEnd: Stream<Event>
onAudioStart: Stream<Event>
onEnd: Stream<Event>
onError: Stream<SpeechRecognitionError>
onNoMatch: Stream<SpeechRecognitionEvent>
onResult: Stream<SpeechRecognitionEvent>
onSoundEnd: Stream<Event>
onSoundStart: Stream<Event>
onSpeechEnd: Stream<Event>
onSpeechStart: Stream<Event>
onStart: Stream<Event>
supported: bool
- Constructors
-
SpeechRecognition()
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
abort(): void
dispatchEvent(Event event): bool
start(): void
stop(): void
Static Fields
@
@
static const EventStreamProvider audioEndEvent
@
@
static const EventStreamProvider audioStartEvent
@
@
static const EventStreamProvider endEvent
@
@
static const EventStreamProvider errorEvent
@
@
static const EventStreamProvider noMatchEvent
@
@
static const EventStreamProvider resultEvent
@
@
static const EventStreamProvider soundEndEvent
@
@
static const EventStreamProvider soundStartEvent
@
@
static const EventStreamProvider speechEndEvent
@
@
static const EventStreamProvider speechStartEvent
@
@
static const EventStreamProvider startEvent
static final bool supported
Fields
bool continuous
SpeechGrammarList grammars
bool interimResults
String lang
int maxAlternatives
final Stream onAudioEnd
final Stream onAudioStart
final Stream onEnd
final Stream onError
final Stream onNoMatch
final Stream onResult
final Stream onSoundEnd
final Stream onSoundStart
final Stream onSpeechEnd
final Stream onSpeechStart
final Stream onStart
Getters and Setters
@
@
bool get continuous
@
@
set continuous=(bool value)
@
@
SpeechGrammarList get grammars
@
@
set grammars=(SpeechGrammarList value)
@
@
bool get interimResults
@
@
set interimResults=(bool value)
@
@
String get lang
@
@
set lang=(String value)
@
@
int get maxAlternatives
@
@
set maxAlternatives=(int value)
@
@
Stream<Event> get onAudioEnd
@
@
Stream<Event> get onAudioStart
@
@
Stream<Event> get onEnd
@
@
Stream<SpeechRecognitionError> get onError
@
@
Stream<SpeechRecognitionEvent> get onNoMatch
@
@
Stream<SpeechRecognitionEvent> get onResult
@
@
Stream<Event> get onSoundEnd
@
@
Stream<Event> get onSoundStart
@
@
Stream<Event> get onSpeechEnd
@
@
Stream<Event> get onSpeechStart
@
@
Stream<Event> get onStart
static bool get supported
Checks if this type is supported on the current platform.
Constructors
@
@
factory SpeechRecognition()
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
void abort()
@
@
bool dispatchEvent(Event event)
@
@
void start()
@
@
void stop()
@
@
@
@
Class SpeechRecognitionAlternative extends NativeFieldWrapperClass1
- Fields
-
confidence: double
transcript: String
- Getters and Setters
-
confidence: double
transcript: String
- Constructors
-
SpeechRecognitionAlternative()
Fields
final double confidence
final String transcript
Getters and Setters
@
@
double get confidence
@
@
String get transcript
Constructors
SpeechRecognitionAlternative()
@
@
@
@
Class SpeechRecognitionError extends Event
- Fields
-
error: String
message: String
- Getters and Setters
-
error: String
message: String
Fields
final String error
final String message
Getters and Setters
@
@
String get error
@
@
String get message
@
@
@
@
Class SpeechRecognitionEvent extends Event
- Fields
-
emma: Document
interpretation: Document
resultIndex: int
results: List
- Getters and Setters
-
emma: Document
interpretation: Document
resultIndex: int
results: List<SpeechRecognitionResult>
Fields
final Document emma
final Document interpretation
final int resultIndex
final List results
Getters and Setters
@
@
Document get emma
@
@
Document get interpretation
@
@
int get resultIndex
@
@
List<SpeechRecognitionResult> get results
@
@
@
@
Class SpeechRecognitionResult extends NativeFieldWrapperClass1
- Fields
-
isFinal: bool
length: int
- Getters and Setters
-
isFinal: bool
length: int
- Constructors
-
SpeechRecognitionResult()
- Methods
-
item(int index): SpeechRecognitionAlternative
Fields
final bool isFinal
final int length
Getters and Setters
@
@
bool get isFinal
@
@
int get length
Constructors
SpeechRecognitionResult()
Methods
@
@
SpeechRecognitionAlternative item(int index)
@
@
@
Class SpeechSynthesis extends NativeFieldWrapperClass1
- Fields
-
paused: bool
pending: bool
speaking: bool
- Getters and Setters
-
paused: bool
pending: bool
speaking: bool
- Constructors
-
SpeechSynthesis()
- Methods
-
cancel(): void
getVoices(): List<SpeechSynthesisVoice>
pause(): void
resume(): void
speak(SpeechSynthesisUtterance utterance): void
Fields
final bool paused
final bool pending
final bool speaking
Getters and Setters
@
@
bool get paused
@
@
bool get pending
@
@
bool get speaking
Constructors
SpeechSynthesis()
Methods
@
@
void cancel()
@
@
List<SpeechSynthesisVoice> getVoices()
@
@
void pause()
@
@
void resume()
@
@
void speak(SpeechSynthesisUtterance utterance)
@
@
@
Class SpeechSynthesisEvent extends Event
- Fields
-
charIndex: int
elapsedTime: double
name: String
- Getters and Setters
-
charIndex: int
elapsedTime: double
name: String
Fields
final int charIndex
final double elapsedTime
final String name
Getters and Setters
@
@
int get charIndex
@
@
double get elapsedTime
@
@
String get name
@
@
@
Class SpeechSynthesisUtterance extends EventTarget
- Static Fields
-
boundaryEvent: EventStreamProvider
endEvent: EventStreamProvider
errorEvent: EventStreamProvider
markEvent: EventStreamProvider
pauseEvent: EventStreamProvider
resumeEvent: EventStreamProvider
startEvent: EventStreamProvider
- Fields
-
lang: String
onBoundary: Stream
onEnd: Stream
onError: Stream
onMark: Stream
onPause: Stream
onResume: Stream
onStart: Stream
pitch: num
rate: num
text: String
voice: SpeechSynthesisVoice
volume: num
- Getters and Setters
-
lang: String
lang=(String value)
onBoundary: Stream<SpeechSynthesisEvent>
onEnd: Stream<SpeechSynthesisEvent>
onError: Stream<Event>
onMark: Stream<SpeechSynthesisEvent>
onPause: Stream<Event>
onResume: Stream<SpeechSynthesisEvent>
onStart: Stream<SpeechSynthesisEvent>
pitch: num
pitch=(num value)
rate: num
rate=(num value)
text: String
text=(String value)
voice: SpeechSynthesisVoice
voice=(SpeechSynthesisVoice value)
volume: num
volume=(num value)
- Constructors
-
SpeechSynthesisUtterance(String text)
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
dispatchEvent(Event event): bool
Static Fields
@
@
static const EventStreamProvider boundaryEvent
@
@
static const EventStreamProvider endEvent
@
@
static const EventStreamProvider errorEvent
@
@
static const EventStreamProvider markEvent
@
@
static const EventStreamProvider pauseEvent
@
@
static const EventStreamProvider resumeEvent
@
@
static const EventStreamProvider startEvent
Fields
String lang
final Stream onBoundary
final Stream onEnd
final Stream onError
final Stream onMark
final Stream onPause
final Stream onResume
final Stream onStart
num pitch
num rate
String text
SpeechSynthesisVoice voice
num volume
Getters and Setters
@
@
String get lang
@
@
set lang=(String value)
@
@
Stream<SpeechSynthesisEvent> get onBoundary
@
@
Stream<SpeechSynthesisEvent> get onEnd
@
@
Stream<Event> get onError
@
@
Stream<SpeechSynthesisEvent> get onMark
@
@
Stream<Event> get onPause
@
@
Stream<SpeechSynthesisEvent> get onResume
@
@
Stream<SpeechSynthesisEvent> get onStart
@
@
num get pitch
@
@
set pitch=(num value)
@
@
num get rate
@
@
set rate=(num value)
@
@
String get text
@
@
set text=(String value)
@
@
SpeechSynthesisVoice get voice
@
@
set voice=(SpeechSynthesisVoice value)
@
@
num get volume
@
@
set volume=(num value)
Constructors
@
@
factory SpeechSynthesisUtterance(String text)
Methods
@
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
@
bool dispatchEvent(Event event)
@
@
@
Class SpeechSynthesisVoice extends NativeFieldWrapperClass1
- Fields
-
defaultValue: bool
lang: String
localService: bool
name: String
voiceUri: String
- Getters and Setters
-
defaultValue: bool
lang: String
localService: bool
name: String
voiceUri: String
- Constructors
-
SpeechSynthesisVoice()
Fields
final bool defaultValue
final String lang
final bool localService
final String name
final String voiceUri
Getters and Setters
@
@
bool get defaultValue
@
@
String get lang
@
@
bool get localService
@
@
String get name
@
@
String get voiceUri
Constructors
SpeechSynthesisVoice()
@
@
Class Storage extends NativeFieldWrapperClass1 implements Map<String, String>
- Fields
-
isEmpty: bool
isNotEmpty: bool
keys: Iterable
length: int
values: Iterable
- Getters and Setters
-
isEmpty: bool
isNotEmpty: bool
keys: Iterable<String>
length: int
values: Iterable<String>
- Constructors
-
Storage()
- Methods
-
[](String key): String
[]=(String key, String value): void
clear(): void
containsKey(String key): bool
containsValue(String value): bool
forEach( f): void
putIfAbsent(String key, ifAbsent): String
remove(String key): String
The type used by the Window.localStorage
and Window.sessionStorage
properties. Storage is implemented as a Map<String, String>.
To store and get values, use Dart's built-in map syntax:
window.localStorage['key1'] = 'val1';
window.localStorage['key2'] = 'val2';
window.localStorage['key3'] = 'val3';
assert(window.localStorage['key3'] == 'val3');
You can use
Map
(http://api.dartlang.org/dart_core/Map.html) APIs such as containsValue(), clear(), and length:
assert(window.localStorage.containsValue('does not exist') == false);
window.localStorage.clear();
assert(window.localStorage.length == 0);
For more examples of using this API, see
localstorage_test.dart
(http://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/tests/html/localstorage_test.dart). For details on using the Map API, see the
Maps
(http://www.dartlang.org/docs/library-tour/#maps-aka-dictionaries-or-hashes) section of the library tour.
Fields
final bool isEmpty
final bool isNotEmpty
final Iterable keys
final int length
final Iterable values
Getters and Setters
bool get isEmpty
bool get isNotEmpty
Iterable<String> get keys
int get length
Iterable<String> get values
Constructors
Storage()
Methods
String [](String key)
Returns the value for the given key
or null if key
is not in the map. Because null values are supported, one should either use containsKey
to distinguish between an absent key and a null value, or use the putIfAbsent
method.
void []=(String key, String value)
Associates the key
with the given value
.
void clear()
Removes all pairs from the map.
bool containsKey(String key)
Returns true if this map contains the given key.
bool containsValue(String value)
Returns true if this map contains the given value.
void forEach( f)
Applies f
to each {key, value} pair of the map.
It is an error to add or remove keys from the map during iteration.
String putIfAbsent(String key, ifAbsent)
If key
is not associated to a value, calls ifAbsent
and updates the map by mapping key
to the value returned by ifAbsent
. Returns the value in the map.
It is an error to add or remove keys from the map during the call to ifAbsent
.
String remove(String key)
Removes the association for the given key
. Returns the value for key
in the map or null if key
is not in the map. Note that values can be null and a returned null value does not always imply that the key is absent.
@
@
Class StorageEvent extends Event
- Fields
-
key: String
newValue: String
oldValue: String
storageArea: Storage
url: String
- Getters and Setters
-
key: String
newValue: String
oldValue: String
storageArea: Storage
url: String
- Constructors
-
StorageEvent(String type, bool canBubble, bool cancelable, String key, String oldValue, String newValue, String url, Storage storageArea)
Fields
final String key
final String newValue
final String oldValue
final Storage storageArea
final String url
Getters and Setters
@
@
String get key
@
@
String get newValue
@
@
String get oldValue
@
@
Storage get storageArea
@
@
String get url
Constructors
factory StorageEvent(String type, bool canBubble, bool cancelable, String key, String oldValue, String newValue, String url, Storage storageArea)
@
@
Class StorageInfo extends NativeFieldWrapperClass1
- Static Fields
-
PERSISTENT: int
TEMPORARY: int
- Constructors
-
StorageInfo()
- Methods
-
queryUsageAndQuota(int storageType): Future<StorageInfoUsage>
requestQuota(int storageType, int newQuotaInBytes): Future<int>
Static Fields
@
@
static const int PERSISTENT = 1
@
@
static const int TEMPORARY = 0
Constructors
StorageInfo()
Methods
Future<StorageInfoUsage> queryUsageAndQuota(int storageType)
Future<int> requestQuota(int storageType, int newQuotaInBytes)
Class StorageInfoUsage
- Fields
-
currentQuotaInBytes: int
currentUsageInBytes: int
- Constructors
-
StorageInfoUsage(int currentUsageInBytes, int currentQuotaInBytes)
A simple container class for the two values that are returned from the futures in requestQuota and queryUsageAndQuota.
Fields
final int currentQuotaInBytes
final int currentUsageInBytes
Constructors
StorageInfoUsage(int currentUsageInBytes, int currentQuotaInBytes)
@
@
@
Class StorageQuota extends NativeFieldWrapperClass1
- Constructors
-
StorageQuota()
- Methods
-
queryUsageAndQuota(StorageUsageCallback usageCallback, StorageErrorCallback errorCallback): void
requestQuota(int newQuotaInBytes, StorageQuotaCallback quotaCallback, StorageErrorCallback errorCallback): void
Constructors
StorageQuota()
Methods
@
@
void queryUsageAndQuota(StorageUsageCallback usageCallback, StorageErrorCallback errorCallback)
@
@
void requestQuota(int newQuotaInBytes, StorageQuotaCallback quotaCallback, StorageErrorCallback errorCallback)
@
@
Class StyleElement extends HtmlElement
- Fields
-
disabled: bool
media: String
scoped: bool
sheet: StyleSheet
type: String
- Getters and Setters
-
disabled: bool
disabled=(bool value)
media: String
media=(String value)
scoped: bool
scoped=(bool value)
sheet: StyleSheet
type: String
type=(String value)
- Constructors
-
StyleElement()
Fields
bool disabled
String media
bool scoped
final StyleSheet sheet
String type
Getters and Setters
@
@
bool get disabled
@
@
set disabled=(bool value)
@
@
String get media
@
@
set media=(String value)
@
@
bool get scoped
@
@
set scoped=(bool value)
@
@
StyleSheet get sheet
@
@
String get type
@
@
set type=(String value)
Constructors
@
@
factory StyleElement()
@
@
@
Class StyleMedia extends NativeFieldWrapperClass1
- Fields
-
type: String
- Getters and Setters
-
type: String
- Constructors
-
StyleMedia()
- Methods
-
matchMedium(String mediaquery): bool
Fields
final String type
Getters and Setters
@
@
String get type
Constructors
StyleMedia()
Methods
@
@
bool matchMedium(String mediaquery)
@
@
Class StyleSheet extends NativeFieldWrapperClass1
- Fields
-
disabled: bool
href: String
media: MediaList
ownerNode: Node
parentStyleSheet: StyleSheet
title: String
type: String
- Getters and Setters
-
disabled: bool
disabled=(bool value)
href: String
media: MediaList
ownerNode: Node
parentStyleSheet: StyleSheet
title: String
type: String
- Constructors
-
StyleSheet()
Fields
bool disabled
final String href
final MediaList media
final Node ownerNode
final StyleSheet parentStyleSheet
final String title
final String type
Getters and Setters
@
@
bool get disabled
@
@
set disabled=(bool value)
@
@
String get href
@
@
MediaList get media
@
@
Node get ownerNode
@
@
StyleSheet get parentStyleSheet
@
@
String get title
@
@
String get type
Constructors
StyleSheet()
Abstract class SubmitButtonInputElement implements InputElementBase
- Fields
-
formAction: String
formEnctype: String
formMethod: String
formNoValidate: bool
formTarget: String
- Constructors
-
SubmitButtonInputElement()
A button, which when clicked, submits the form.
Fields
@
String formAction
@
String formEnctype
@
String formMethod
@
bool formNoValidate
@
String formTarget
Constructors
factory SubmitButtonInputElement()
@
@
Class TableCaptionElement extends HtmlElement
- Constructors
-
TableCaptionElement()
Constructors
@
@
factory TableCaptionElement()
@
@
Class TableCellElement extends HtmlElement
- Fields
-
cellIndex: int
colSpan: int
headers: String
rowSpan: int
- Getters and Setters
-
cellIndex: int
colSpan: int
colSpan=(int value)
headers: String
headers=(String value)
rowSpan: int
rowSpan=(int value)
- Constructors
-
TableCellElement()
Fields
final int cellIndex
int colSpan
String headers
int rowSpan
Getters and Setters
@
@
int get cellIndex
@
@
int get colSpan
@
@
set colSpan=(int value)
@
@
String get headers
@
@
set headers=(String value)
@
@
int get rowSpan
@
@
set rowSpan=(int value)
Constructors
@
@
factory TableCellElement()
@
@
Class TableColElement extends HtmlElement
- Fields
-
span: int
- Getters and Setters
-
span: int
span=(int value)
- Constructors
-
TableColElement()
Fields
int span
Getters and Setters
@
@
int get span
@
@
set span=(int value)
Constructors
@
@
factory TableColElement()
@
@
Class TableElement extends HtmlElement
- Fields
-
border: String
caption: TableCaptionElement
rows: List
tBodies: List
tFoot: TableSectionElement
tHead: TableSectionElement
- Getters and Setters
-
border: String
border=(String value)
caption: TableCaptionElement
caption=(TableCaptionElement value)
rows: List<TableRowElement>
tBodies: List<TableSectionElement>
tFoot: TableSectionElement
tFoot=(TableSectionElement value)
tHead: TableSectionElement
tHead=(TableSectionElement value)
- Constructors
-
TableElement()
- Methods
-
addRow(): TableRowElement
createCaption(): TableCaptionElement
createTBody(): TableSectionElement
createTFoot(): TableSectionElement
createTHead(): TableSectionElement
deleteCaption(): void
deleteRow(int index): void
deleteTFoot(): void
deleteTHead(): void
insertRow(int index): TableRowElement
Fields
String border
TableCaptionElement caption
final List rows
final List tBodies
TableSectionElement tFoot
TableSectionElement tHead
Getters and Setters
@
@
@deprecated
String get border
@
@
@deprecated
set border=(String value)
@
@
TableCaptionElement get caption
@
@
set caption=(TableCaptionElement value)
@
List<TableRowElement> get rows
@
List<TableSectionElement> get tBodies
@
@
TableSectionElement get tFoot
@
@
set tFoot=(TableSectionElement value)
@
@
TableSectionElement get tHead
@
@
set tHead=(TableSectionElement value)
Constructors
@
@
factory TableElement()
Methods
TableRowElement addRow()
TableCaptionElement createCaption()
TableSectionElement createTBody()
TableSectionElement createTFoot()
TableSectionElement createTHead()
@
@
void deleteCaption()
@
@
void deleteRow(int index)
@
@
void deleteTFoot()
@
@
void deleteTHead()
TableRowElement insertRow(int index)
@
@
Class TableRowElement extends HtmlElement
- Fields
-
cells: List
rowIndex: int
sectionRowIndex: int
- Getters and Setters
-
cells: List<TableCellElement>
rowIndex: int
sectionRowIndex: int
- Constructors
-
TableRowElement()
- Methods
-
addCell(): TableCellElement
deleteCell(int index): void
insertCell(int index): TableCellElement
Fields
final List cells
final int rowIndex
final int sectionRowIndex
Getters and Setters
@
List<TableCellElement> get cells
@
@
int get rowIndex
@
@
int get sectionRowIndex
Constructors
@
@
factory TableRowElement()
Methods
TableCellElement addCell()
@
@
void deleteCell(int index)
TableCellElement insertCell(int index)
@
@
Class TableSectionElement extends HtmlElement
- Fields
-
rows: List
- Getters and Setters
-
rows: List<TableRowElement>
- Methods
-
addRow(): TableRowElement
deleteRow(int index): void
insertRow(int index): TableRowElement
Fields
final List rows
Getters and Setters
@
List<TableRowElement> get rows
Methods
TableRowElement addRow()
@
@
void deleteRow(int index)
TableRowElement insertRow(int index)
@
@
@
@
Abstract class TelephoneInputElement implements TextInputElementBase
- Static Fields
-
supported: bool
- Fields
-
list: Element
- Getters and Setters
-
list: Element
supported: bool
- Constructors
-
TelephoneInputElement()
Represents a control for editing a telephone number.
This provides a single line of text with minimal formatting help since there is a wide variety of telephone numbers.
Use supported to check if this is supported on the current platform.
Static Fields
static final bool supported
Fields
final Element list
Getters and Setters
@
Element get list
static bool get supported
Returns true if this input type is supported on the current platform.
Constructors
factory TelephoneInputElement()
@
@
@
@
Class TemplateElement extends HtmlElement
- Static Fields
-
mdvPackage: Function
supported: bool
- Fields
-
content: DocumentFragment
- Getters and Setters
-
content: DocumentFragment
supported: bool
- Constructors
-
TemplateElement()
- Methods
-
bootstrap(Node content): void
decorate(Element template, Element instanceRef): bool
setInnerHtml(String html, NodeValidator validator, NodeTreeSanitizer treeSanitizer): void
Static Fields
static Function mdvPackage
The MDV package, if available.
This can be used to initialize MDV support via:
import 'dart:html';
import 'package:mdv/mdv.dart' as mdv;
main() {
mdv.initialize();
}
static final bool supported
Fields
final DocumentFragment content
Getters and Setters
@
DocumentFragment get content
static bool get supported
Checks if this type is supported on the current platform.
Constructors
@
@
factory TemplateElement()
Methods
@
static void bootstrap(Node content)
This used to decorate recursively all templates from a given node.
By default decorate
will be called on templates lazily when certain properties such as model
are accessed, but it can be run eagerly to decorate an entire tree recursively.
@
static bool decorate(Element template, Element instanceRef)
Ensures proper API and content model for template elements.
instanceRef
can be used to set the Element.ref
property of template
, and use the ref's content will be used as source when createInstance() is invoked.
Returns true if this template was just decorated, or false if it was already decorated.
void setInnerHtml(String html, NodeValidator validator, NodeTreeSanitizer treeSanitizer)
An override to place the contents into content rather than as child nodes.
See also:
- <https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html#innerhtml-on-templates>
Class TemplateInstance
- Fields
-
firstNode: Node
lastNode: Node
model: dynamic
- Constructors
-
TemplateInstance(Node firstNode, Node lastNode, dynamic model)
Information about the instantiated template.
Fields
final Node firstNode
The first node of this template instantiation.
final Node lastNode
The last node of this template instantiation. This could be identical to firstNode
if the template only expanded to a single node.
final dynamic model
The model used to instantiate the template.
Constructors
TemplateInstance(Node firstNode, Node lastNode, dynamic model)
Class TestRunner
- Methods
-
display(): dynamic
dumpAsText(): dynamic
notifyDone(): dynamic
setCanOpenWindows(): dynamic
waitUntilDone(): dynamic
Methods
dynamic display()
dynamic dumpAsText()
dynamic notifyDone()
dynamic setCanOpenWindows()
dynamic waitUntilDone()
- Fields
-
wholeText: String
- Getters and Setters
-
wholeText: String
- Constructors
-
Text(String data)
- Methods
-
getDestinationInsertionPoints(): List<Node>
replaceWholeText(String content): Text
splitText(int offset): Text
Fields
final String wholeText
Getters and Setters
@
@
String get wholeText
Constructors
factory Text(String data)
Methods
@
@
@
List<Node> getDestinationInsertionPoints()
@
@
@deprecated
Text replaceWholeText(String content)
@
@
Text splitText(int offset)
@
@
Class TextAreaElement extends HtmlElement
- Fields
-
autofocus: bool
cols: int
defaultValue: String
dirName: String
disabled: bool
form: FormElement
inputMode: String
labels: List
maxLength: int
name: String
placeholder: String
readOnly: bool
required: bool
rows: int
selectionDirection: String
selectionEnd: int
selectionStart: int
textLength: int
type: String
validationMessage: String
validity: ValidityState
value: String
willValidate: bool
wrap: String
- Getters and Setters
-
autofocus: bool
autofocus=(bool value)
cols: int
cols=(int value)
defaultValue: String
defaultValue=(String value)
dirName: String
dirName=(String value)
disabled: bool
disabled=(bool value)
form: FormElement
inputMode: String
inputMode=(String value)
labels: List<Node>
maxLength: int
maxLength=(int value)
name: String
name=(String value)
placeholder: String
placeholder=(String value)
readOnly: bool
readOnly=(bool value)
required: bool
required=(bool value)
rows: int
rows=(int value)
selectionDirection: String
selectionDirection=(String value)
selectionEnd: int
selectionEnd=(int value)
selectionStart: int
selectionStart=(int value)
textLength: int
type: String
validationMessage: String
validity: ValidityState
value: String
value=(String value)
willValidate: bool
wrap: String
wrap=(String value)
- Constructors
-
TextAreaElement()
- Methods
-
checkValidity(): bool
select(): void
setCustomValidity(String error): void
setRangeText(String replacement, int start, int end, String selectionMode): void
setSelectionRange(int start, int end, String direction): void
Fields
bool autofocus
int cols
String defaultValue
String dirName
bool disabled
final FormElement form
String inputMode
final List labels
int maxLength
String name
String placeholder
bool readOnly
bool required
int rows
String selectionDirection
int selectionEnd
int selectionStart
final int textLength
final String type
final String validationMessage
final ValidityState validity
String value
final bool willValidate
String wrap
Getters and Setters
@
@
bool get autofocus
@
@
set autofocus=(bool value)
@
@
int get cols
@
@
set cols=(int value)
@
@
String get defaultValue
@
@
set defaultValue=(String value)
@
@
@
String get dirName
@
@
@
set dirName=(String value)
@
@
bool get disabled
@
@
set disabled=(bool value)
@
@
FormElement get form
@
@
@
String get inputMode
@
@
@
set inputMode=(String value)
@
@
@
List<Node> get labels
@
@
int get maxLength
@
@
set maxLength=(int value)
@
@
String get name
@
@
set name=(String value)
@
@
String get placeholder
@
@
set placeholder=(String value)
@
@
bool get readOnly
@
@
set readOnly=(bool value)
@
@
bool get required
@
@
set required=(bool value)
@
@
int get rows
@
@
set rows=(int value)
@
@
String get selectionDirection
@
@
set selectionDirection=(String value)
@
@
int get selectionEnd
@
@
set selectionEnd=(int value)
@
@
int get selectionStart
@
@
set selectionStart=(int value)
@
@
int get textLength
@
@
String get type
@
@
String get validationMessage
@
@
ValidityState get validity
@
@
String get value
@
@
set value=(String value)
@
@
bool get willValidate
@
@
String get wrap
@
@
set wrap=(String value)
Constructors
@
@
factory TextAreaElement()
Methods
@
@
bool checkValidity()
@
@
void select()
@
@
void setCustomValidity(String error)
void setRangeText(String replacement, int start, int end, String selectionMode)
void setSelectionRange(int start, int end, String direction)
@
@
Class TextEvent extends UIEvent
- Fields
-
data: String
- Getters and Setters
-
data: String
- Constructors
-
TextEvent(String type, bool canBubble, bool cancelable, Window view, String data)
Fields
final String data
Getters and Setters
@
@
String get data
Constructors
factory TextEvent(String type, bool canBubble, bool cancelable, Window view, String data)
Abstract class TextInputElement implements TextInputElementBase
- Fields
-
dirName: String
list: Element
- Getters and Setters
-
list: Element
- Constructors
-
TextInputElement()
A basic text input editor control.
Fields
@
String dirName
final Element list
Getters and Setters
@
Element get list
Constructors
factory TextInputElement()
Abstract class TextInputElementBase implements InputElementBase
- Fields
-
autocomplete: String
maxLength: int
pattern: String
placeholder: String
readOnly: bool
required: bool
selectionDirection: String
selectionEnd: int
selectionStart: int
size: int
- Constructors
-
TextInputElementBase()
- Methods
-
select(): void
setSelectionRange(int start, int end, String direction): void
Base interface for all inputs which involve text editing.
Fields
@
String autocomplete
@
int maxLength
@
String pattern
@
String placeholder
@
bool readOnly
@
bool required
@
String selectionDirection
@
int selectionEnd
@
int selectionStart
@
int size
Constructors
TextInputElementBase()
Methods
@
void select()
@
void setSelectionRange(int start, int end, String direction)
@
@
Class TextMetrics extends NativeFieldWrapperClass1
- Fields
-
width: double
- Getters and Setters
-
width: double
- Constructors
-
TextMetrics()
Fields
final double width
Getters and Setters
@
@
double get width
Constructors
TextMetrics()
@
@
@
Class TextTrack extends EventTarget
- Static Fields
-
cueChangeEvent: EventStreamProvider
- Fields
-
activeCues: TextTrackCueList
cues: TextTrackCueList
kind: String
label: String
language: String
mode: String
onCueChange: Stream
- Getters and Setters
-
activeCues: TextTrackCueList
cues: TextTrackCueList
kind: String
label: String
language: String
mode: String
mode=(String value)
onCueChange: Stream<Event>
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
addCue(TextTrackCue cue): void
dispatchEvent(Event event): bool
removeCue(TextTrackCue cue): void
Static Fields
@
@
static const EventStreamProvider cueChangeEvent
Fields
final TextTrackCueList activeCues
final TextTrackCueList cues
final String kind
final String label
final String language
String mode
final Stream onCueChange
Getters and Setters
@
@
TextTrackCueList get activeCues
@
@
TextTrackCueList get cues
@
@
String get kind
@
@
String get label
@
@
String get language
@
@
String get mode
@
@
set mode=(String value)
@
@
Stream<Event> get onCueChange
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
void addCue(TextTrackCue cue)
@
@
bool dispatchEvent(Event event)
@
@
void removeCue(TextTrackCue cue)
@
@
@
Class TextTrackCue extends EventTarget
- Static Fields
-
enterEvent: EventStreamProvider
exitEvent: EventStreamProvider
- Fields
-
align: String
endTime: num
id: String
line: int
onEnter: Stream
onExit: Stream
pauseOnExit: bool
position: int
size: int
snapToLines: bool
startTime: num
text: String
track: TextTrack
vertical: String
- Getters and Setters
-
align: String
align=(String value)
endTime: num
endTime=(num value)
id: String
id=(String value)
line: int
line=(int value)
onEnter: Stream<Event>
onExit: Stream<Event>
pauseOnExit: bool
pauseOnExit=(bool value)
position: int
position=(int value)
size: int
size=(int value)
snapToLines: bool
snapToLines=(bool value)
startTime: num
startTime=(num value)
text: String
text=(String value)
track: TextTrack
vertical: String
vertical=(String value)
- Constructors
-
TextTrackCue(num startTime, num endTime, String text)
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
dispatchEvent(Event event): bool
getCueAsHtml(): DocumentFragment
Static Fields
@
@
static const EventStreamProvider enterEvent
@
@
static const EventStreamProvider exitEvent
Fields
String align
num endTime
String id
int line
final Stream onEnter
final Stream onExit
bool pauseOnExit
int position
int size
bool snapToLines
num startTime
String text
final TextTrack track
String vertical
Getters and Setters
@
@
@
String get align
@
@
@
set align=(String value)
@
@
num get endTime
@
@
set endTime=(num value)
@
@
String get id
@
@
set id=(String value)
@
@
@
int get line
@
@
@
set line=(int value)
@
@
Stream<Event> get onEnter
@
@
Stream<Event> get onExit
@
@
bool get pauseOnExit
@
@
set pauseOnExit=(bool value)
@
@
@
int get position
@
@
@
set position=(int value)
@
@
@
int get size
@
@
@
set size=(int value)
@
@
@
bool get snapToLines
@
@
@
set snapToLines=(bool value)
@
@
num get startTime
@
@
set startTime=(num value)
@
@
@
String get text
@
@
@
set text=(String value)
@
@
TextTrack get track
@
@
@
String get vertical
@
@
@
set vertical=(String value)
Constructors
@
@
factory TextTrackCue(num startTime, num endTime, String text)
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
bool dispatchEvent(Event event)
@
@
@
DocumentFragment getCueAsHtml()
- Fields
-
first: TextTrackCue
last: TextTrackCue
length: int
single: TextTrackCue
- Getters and Setters
-
first: TextTrackCue
last: TextTrackCue
length: int
length=(int value)
single: TextTrackCue
- Constructors
-
TextTrackCueList()
- Methods
-
[](int index): TextTrackCue
[]=(int index, TextTrackCue value): void
elementAt(int index): TextTrackCue
getCueById(String id): TextTrackCue
item(int index): TextTrackCue
Fields
final TextTrackCue first
final TextTrackCue last
int length
final TextTrackCue single
Getters and Setters
TextTrackCue get first
TextTrackCue get last
@
@
int get length
set length=(int value)
TextTrackCue get single
Constructors
TextTrackCueList()
Methods
TextTrackCue [](int index)
Returns the object at the given index
in the list or throws a RangeError
if index
is out of bounds.
void []=(int index, TextTrackCue value)
Sets the value at the given index
in the list to value
or throws a RangeError
if index
is out of bounds.
TextTrackCue elementAt(int index)
Returns the index
th element.
If this
has fewer than index
elements throws a RangeError
.
Note: if this
does not have a deterministic iteration order then the function may simply return any element without any iteration if there are at least index
elements in this
.
@
@
TextTrackCue getCueById(String id)
@
@
TextTrackCue item(int index)
- Static Fields
-
addTrackEvent: EventStreamProvider
- Fields
-
first: TextTrack
last: TextTrack
length: int
onAddTrack: Stream
single: TextTrack
- Getters and Setters
-
first: TextTrack
last: TextTrack
length: int
length=(int value)
onAddTrack: Stream<TrackEvent>
single: TextTrack
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
[](int index): TextTrack
[]=(int index, TextTrack value): void
dispatchEvent(Event event): bool
elementAt(int index): TextTrack
item(int index): TextTrack
Static Fields
@
@
static const EventStreamProvider addTrackEvent
Fields
final TextTrack first
final TextTrack last
int length
final Stream onAddTrack
final TextTrack single
Getters and Setters
TextTrack get first
TextTrack get last
@
@
int get length
set length=(int value)
@
@
Stream<TrackEvent> get onAddTrack
TextTrack get single
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
TextTrack [](int index)
Returns the object at the given index
in the list or throws a RangeError
if index
is out of bounds.
void []=(int index, TextTrack value)
Sets the value at the given index
in the list to value
or throws a RangeError
if index
is out of bounds.
@
@
bool dispatchEvent(Event event)
TextTrack elementAt(int index)
Returns the index
th element.
If this
has fewer than index
elements throws a RangeError
.
Note: if this
does not have a deterministic iteration order then the function may simply return any element without any iteration if there are at least index
elements in this
.
@
@
TextTrack item(int index)
@
@
Abstract class TimeInputElement implements RangeInputElementBase
- Static Fields
-
supported: bool
- Fields
-
readOnly: bool
required: bool
valueAsDate: DateTime
- Getters and Setters
-
supported: bool
- Constructors
-
TimeInputElement()
A time (hour, minute, seconds, fractional seconds) with no time zone.
Use supported to check if this is supported on the current platform.
Static Fields
static final bool supported
Fields
@
bool readOnly
@
bool required
@
DateTime valueAsDate
Getters and Setters
static bool get supported
Returns true if this input type is supported on the current platform.
Constructors
factory TimeInputElement()
@
@
@
Class TimeRanges extends NativeFieldWrapperClass1
- Fields
-
length: int
- Getters and Setters
-
length: int
- Constructors
-
TimeRanges()
- Methods
-
end(int index): double
start(int index): double
Fields
final int length
Getters and Setters
@
@
int get length
Constructors
TimeRanges()
Methods
@
@
double end(int index)
@
@
double start(int index)
@
@
Class TitleElement extends HtmlElement
- Constructors
-
TitleElement()
Constructors
@
@
factory TitleElement()
@
@
@
Class Touch extends NativeFieldWrapperClass1
- Fields
-
client: Point
force: double
identifier: int
page: Point
radiusX: int
radiusY: int
rotationAngle: double
screen: Point
target: EventTarget
- Getters and Setters
-
client: Point
force: double
identifier: int
page: Point
radiusX: int
radiusY: int
rotationAngle: double
screen: Point
target: EventTarget
- Constructors
-
Touch()
Fields
final Point client
final double force
final int identifier
final Point page
final int radiusX
final int radiusY
final double rotationAngle
final Point screen
final EventTarget target
Getters and Setters
@
@
Point get client
@
@
@
@
@
double get force
@
@
int get identifier
@
@
Point get page
@
@
@
@
@
int get radiusX
@
@
@
@
@
int get radiusY
@
@
@
@
@
double get rotationAngle
@
@
Point get screen
@
@
EventTarget get target
Constructors
Touch()
@
@
Class TouchEvent extends UIEvent
- Static Fields
-
supported: bool
- Fields
-
altKey: bool
changedTouches: TouchList
ctrlKey: bool
metaKey: bool
shiftKey: bool
targetTouches: TouchList
touches: TouchList
- Getters and Setters
-
altKey: bool
changedTouches: TouchList
ctrlKey: bool
metaKey: bool
shiftKey: bool
supported: bool
targetTouches: TouchList
touches: TouchList
- Constructors
-
TouchEvent(TouchList touches, TouchList targetTouches, TouchList changedTouches, String type, Window view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
Static Fields
static final bool supported
Fields
final bool altKey
final TouchList changedTouches
final bool ctrlKey
final bool metaKey
final bool shiftKey
final TouchList targetTouches
final TouchList touches
Getters and Setters
@
@
bool get altKey
@
@
TouchList get changedTouches
@
@
bool get ctrlKey
@
@
bool get metaKey
@
@
bool get shiftKey
static bool get supported
Checks if touch events supported on the current platform.
Note that touch events are only supported if the user is using a touch device.
@
@
TouchList get targetTouches
@
@
TouchList get touches
Constructors
factory TouchEvent(TouchList touches, TouchList targetTouches, TouchList changedTouches, String type, Window view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
- Static Fields
-
supported: bool
- Fields
-
first: Touch
last: Touch
length: int
single: Touch
- Getters and Setters
-
first: Touch
last: Touch
length: int
length=(int value)
single: Touch
supported: bool
- Constructors
-
TouchList()
- Methods
-
[](int index): Touch
[]=(int index, Touch value): void
elementAt(int index): Touch
item(int index): Touch
Static Fields
static final bool supported
Fields
final Touch first
final Touch last
int length
final Touch single
Getters and Setters
Touch get first
Touch get last
@
@
int get length
set length=(int value)
Touch get single
static bool get supported
Checks if this type is supported on the current platform.
Constructors
factory TouchList()
NB: This constructor likely does not work as you might expect it to! This constructor will simply fail (returning null) if you are not on a device with touch enabled. See dartbug.com/8314.
Methods
Touch [](int index)
Returns the object at the given index
in the list or throws a RangeError
if index
is out of bounds.
void []=(int index, Touch value)
Sets the value at the given index
in the list to value
or throws a RangeError
if index
is out of bounds.
Touch elementAt(int index)
Returns the index
th element.
If this
has fewer than index
elements throws a RangeError
.
Note: if this
does not have a deterministic iteration order then the function may simply return any element without any iteration if there are at least index
elements in this
.
@
@
Touch item(int index)
@
@
@
@
@
@
Class TrackElement extends HtmlElement
- Static Fields
-
ERROR: int
LOADED: int
LOADING: int
NONE: int
supported: bool
- Fields
-
defaultValue: bool
kind: String
label: String
readyState: int
src: String
srclang: String
track: TextTrack
- Getters and Setters
-
defaultValue: bool
defaultValue=(bool value)
kind: String
kind=(String value)
label: String
label=(String value)
readyState: int
src: String
src=(String value)
srclang: String
srclang=(String value)
supported: bool
track: TextTrack
- Constructors
-
TrackElement()
Static Fields
@
@
static const int ERROR = 3
@
@
static const int LOADED = 2
@
@
static const int LOADING = 1
@
@
static const int NONE = 0
static final bool supported
Fields
bool defaultValue
String kind
String label
final int readyState
String src
String srclang
final TextTrack track
Getters and Setters
@
@
bool get defaultValue
@
@
set defaultValue=(bool value)
@
@
String get kind
@
@
set kind=(String value)
@
@
String get label
@
@
set label=(String value)
@
@
int get readyState
@
@
String get src
@
@
set src=(String value)
@
@
String get srclang
@
@
set srclang=(String value)
static bool get supported
Checks if this type is supported on the current platform.
@
@
TextTrack get track
Constructors
@
@
factory TrackElement()
@
@
@
Class TrackEvent extends Event
- Fields
-
track: Object
- Getters and Setters
-
track: Object
Fields
final Object track
Getters and Setters
@
@
Object get track
@
@
Class TransitionEvent extends Event
- Fields
-
elapsedTime: double
propertyName: String
pseudoElement: String
- Getters and Setters
-
elapsedTime: double
propertyName: String
pseudoElement: String
Fields
final double elapsedTime
final String propertyName
final String pseudoElement
Getters and Setters
@
@
double get elapsedTime
@
@
String get propertyName
@
@
String get pseudoElement
@
@
Class TreeWalker extends NativeFieldWrapperClass1
- Fields
-
currentNode: Node
expandEntityReferences: bool
filter: NodeFilter
root: Node
whatToShow: int
- Getters and Setters
-
currentNode: Node
currentNode=(Node value)
expandEntityReferences: bool
filter: NodeFilter
root: Node
whatToShow: int
- Constructors
-
TreeWalker(Node root, int whatToShow)
- Methods
-
firstChild(): Node
lastChild(): Node
nextNode(): Node
nextSibling(): Node
parentNode(): Node
previousNode(): Node
previousSibling(): Node
Fields
Node currentNode
final bool expandEntityReferences
final NodeFilter filter
final Node root
final int whatToShow
Getters and Setters
@
@
Node get currentNode
@
@
set currentNode=(Node value)
@
@
@deprecated
bool get expandEntityReferences
@
@
NodeFilter get filter
@
@
Node get root
@
@
int get whatToShow
Constructors
factory TreeWalker(Node root, int whatToShow)
Methods
@
@
Node firstChild()
@
@
Node lastChild()
@
@
Node nextNode()
@
@
Node nextSibling()
@
@
Node parentNode()
@
@
Node previousNode()
@
@
Node previousSibling()
@
Class UIEvent extends Event
- Fields
-
detail: int
layer: Point
layerX: int
layerY: int
page: Point
pageX: int
pageY: int
view: WindowBase
which: int
- Getters and Setters
-
detail: int
layer: Point
layerX: int
layerY: int
page: Point
pageX: int
pageY: int
view: WindowBase
which: int
- Constructors
-
UIEvent(String type, Window view, int detail, bool canBubble, bool cancelable)
Fields
final int detail
final Point layer
final int layerX
final int layerY
final Point page
final int pageX
final int pageY
final WindowBase view
final int which
Getters and Setters
@
@
int get detail
@
@
Point get layer
@deprecated
int get layerX
@deprecated
int get layerY
@
@
Point get page
@deprecated
int get pageX
@deprecated
int get pageY
@
@
WindowBase get view
@
@
@
int get which
Constructors
factory UIEvent(String type, Window view, int detail, bool canBubble, bool cancelable)
@
@
Class UListElement extends HtmlElement
- Constructors
-
UListElement()
Constructors
@
@
factory UListElement()
@
@
Class UnknownElement extends HtmlElement
Abstract class UriPolicy
- Constructors
-
UriPolicy()
- Methods
-
allowsUri(String uri): bool
Defines the policy for what types of uris are allowed for particular attribute values.
This can be used to provide custom rules such as allowing all http:// URIs for image attributes but only same-origin URIs for anchor tags.
Constructors
factory UriPolicy()
Constructs the default UriPolicy which is to only allow Uris to the same origin as the application was launched from.
This will block all ftp: mailto: URIs. It will also block accessing https://example.com if the app is running from http://example.com.
Methods
bool allowsUri(String uri)
Checks if the uri is allowed on the specified attribute.
The uri provided may or may not be a relative path.
@
@
Class Url extends NativeFieldWrapperClass1
- Constructors
-
Url()
- Methods
-
createObjectUrl(dynamic blob_OR_source_OR_stream): String
createObjectUrlFromBlob(Blob blob): String
createObjectUrlFromSource(MediaSource source): String
createObjectUrlFromStream(MediaStream stream): String
revokeObjectUrl(String url): void
Constructors
Url()
Methods
static String createObjectUrl(dynamic blob_OR_source_OR_stream)
@
@
static String createObjectUrlFromBlob(Blob blob)
@
@
static String createObjectUrlFromSource(MediaSource source)
@
@
static String createObjectUrlFromStream(MediaStream stream)
@
@
static void revokeObjectUrl(String url)
@
@
@
@
Abstract class UrlInputElement implements TextInputElementBase
- Static Fields
-
supported: bool
- Fields
-
list: Element
- Getters and Setters
-
list: Element
supported: bool
- Constructors
-
UrlInputElement()
A control for editing an absolute URL.
Use supported to check if this is supported on the current platform.
Static Fields
static final bool supported
Fields
final Element list
Getters and Setters
@
Element get list
static bool get supported
Returns true if this input type is supported on the current platform.
Constructors
factory UrlInputElement()
@
@
Class ValidityState extends NativeFieldWrapperClass1
- Fields
-
badInput: bool
customError: bool
patternMismatch: bool
rangeOverflow: bool
rangeUnderflow: bool
stepMismatch: bool
tooLong: bool
typeMismatch: bool
valid: bool
valueMissing: bool
- Getters and Setters
-
badInput: bool
customError: bool
patternMismatch: bool
rangeOverflow: bool
rangeUnderflow: bool
stepMismatch: bool
tooLong: bool
typeMismatch: bool
valid: bool
valueMissing: bool
- Constructors
-
ValidityState()
Fields
final bool badInput
final bool customError
final bool patternMismatch
final bool rangeOverflow
final bool rangeUnderflow
final bool stepMismatch
final bool tooLong
final bool typeMismatch
final bool valid
final bool valueMissing
Getters and Setters
@
@
bool get badInput
@
@
bool get customError
@
@
bool get patternMismatch
@
@
bool get rangeOverflow
@
@
bool get rangeUnderflow
@
@
bool get stepMismatch
@
@
bool get tooLong
@
@
bool get typeMismatch
@
@
bool get valid
@
@
bool get valueMissing
Constructors
ValidityState()
- Fields
-
decodedFrameCount: int
displayingFullscreen: bool
droppedFrameCount: int
height: int
poster: String
supportsFullscreen: bool
videoHeight: int
videoWidth: int
width: int
- Getters and Setters
-
decodedFrameCount: int
displayingFullscreen: bool
droppedFrameCount: int
height: int
height=(int value)
poster: String
poster=(String value)
supportsFullscreen: bool
videoHeight: int
videoWidth: int
width: int
width=(int value)
- Constructors
-
VideoElement()
- Methods
-
enterFullScreen(): void
enterFullscreen(): void
exitFullScreen(): void
exitFullscreen(): void
Fields
final int decodedFrameCount
final bool displayingFullscreen
final int droppedFrameCount
int height
String poster
final bool supportsFullscreen
final int videoHeight
final int videoWidth
int width
Getters and Setters
@
@
@
@
@
int get decodedFrameCount
@
@
@
@
@
@deprecated
bool get displayingFullscreen
@
@
@
@
@
int get droppedFrameCount
@
@
int get height
@
@
set height=(int value)
@
@
String get poster
@
@
set poster=(String value)
@
@
@
@
@
@deprecated
bool get supportsFullscreen
@
@
int get videoHeight
@
@
int get videoWidth
@
@
int get width
@
@
set width=(int value)
Constructors
@
@
factory VideoElement()
Methods
@
@
@
@
@
@deprecated
void enterFullScreen()
@
@
@
@
@
void enterFullscreen()
@
@
@
@
@
@deprecated
void exitFullScreen()
@
@
@
@
@
void exitFullscreen()
@
@
@
@
@
@
@
Class WebSocket extends EventTarget
- Static Fields
-
CLOSED: int
CLOSING: int
CONNECTING: int
OPEN: int
closeEvent: EventStreamProvider
errorEvent: EventStreamProvider
messageEvent: EventStreamProvider
openEvent: EventStreamProvider
supported: bool
- Fields
-
Url: String
binaryType: String
bufferedAmount: int
extensions: String
onClose: Stream
onError: Stream
onMessage: Stream
onOpen: Stream
protocol: String
readyState: int
url: String
- Getters and Setters
-
Url: String
binaryType: String
binaryType=(String value)
bufferedAmount: int
extensions: String
onClose: Stream<CloseEvent>
onError: Stream<Event>
onMessage: Stream<MessageEvent>
onOpen: Stream<Event>
protocol: String
readyState: int
supported: bool
url: String
- Constructors
-
WebSocket(String url, dynamic protocol_OR_protocols)
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
close(int code, String reason): void
dispatchEvent(Event event): bool
send(dynamic data): void
sendBlob(Blob data): void
sendByteBuffer(ByteBuffer data): void
sendString(String data): void
sendTypedData(TypedData data): void
Use the WebSocket interface to connect to a WebSocket, and to send and receive data on that WebSocket.
To use a WebSocket in your web app, first create a WebSocket object, passing the WebSocket URL as an argument to the constructor.
var webSocket = new WebSocket('ws://127.0.0.1:1337/ws');
To send data on the WebSocket, use the
send() method.
if (webSocket != null && webSocket.readyState == WebSocket.OPEN) {
webSocket.send(data);
} else {
print('WebSocket not connected, message $data not sent');
}
To receive data on the WebSocket, register a listener for message events.
webSocket.onMessage.listen((MessageEvent e) {
receivedData(e.data);
});
The message event handler receives a
MessageEvent
object as its sole argument. You can also define open, close, and error handlers, as specified by
WebSocketEvents
.
For more information, see the WebSockets
(http://www.dartlang.org/docs/library-tour/#html-websockets) section of the library tour and Introducing WebSockets
(http://www.html5rocks.com/en/tutorials/websockets/basics/), an HTML5Rocks.com tutorial.
Static Fields
@
@
static const int CLOSED = 3
@
@
static const int CLOSING = 2
@
@
static const int CONNECTING = 0
@
@
static const int OPEN = 1
@
@
static const EventStreamProvider closeEvent
@
@
static const EventStreamProvider errorEvent
@
@
static const EventStreamProvider messageEvent
@
@
static const EventStreamProvider openEvent
static final bool supported
Fields
final String Url
String binaryType
final int bufferedAmount
final String extensions
final Stream onClose
final Stream onError
final Stream onMessage
final Stream onOpen
final String protocol
final int readyState
final String url
Getters and Setters
@
@
@deprecated
String get Url
@
@
String get binaryType
@
@
set binaryType=(String value)
@
@
int get bufferedAmount
@
@
String get extensions
@
@
Stream<CloseEvent> get onClose
@
@
Stream<Event> get onError
@
@
Stream<MessageEvent> get onMessage
@
@
Stream<Event> get onOpen
@
@
String get protocol
@
@
int get readyState
static bool get supported
Checks if this type is supported on the current platform.
@
@
String get url
Constructors
@
@
factory WebSocket(String url, dynamic protocol_OR_protocols)
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
void close(int code, String reason)
@
@
bool dispatchEvent(Event event)
@
@
void send(dynamic data)
Transmit data to the server over this connection.
This method accepts data of type Blob
, ByteBuffer
, String
, or TypedData
. Named variants sendBlob
, sendByteBuffer
, sendString
, or sendTypedData
, in constrast, only accept data of the specified type.
@
@
void sendBlob(Blob data)
@
@
void sendByteBuffer(ByteBuffer data)
@
@
void sendString(String data)
@
@
void sendTypedData(TypedData data)
@
@
Abstract class WeekInputElement implements RangeInputElementBase
- Static Fields
-
supported: bool
- Fields
-
readOnly: bool
required: bool
valueAsDate: DateTime
- Getters and Setters
-
supported: bool
- Constructors
-
WeekInputElement()
A date consisting of a week-year number and a week number with no time zone.
Use supported to check if this is supported on the current platform.
Static Fields
static final bool supported
Fields
@
bool readOnly
@
bool required
@
DateTime valueAsDate
Getters and Setters
static bool get supported
Returns true if this input type is supported on the current platform.
Constructors
factory WeekInputElement()
@
Class WheelEvent extends MouseEvent
- Static Fields
-
DOM_DELTA_LINE: int
DOM_DELTA_PAGE: int
DOM_DELTA_PIXEL: int
- Fields
-
deltaMode: int
deltaX: num
deltaY: num
deltaZ: double
directionInvertedFromDevice: bool
wheelDeltaX: int
wheelDeltaY: int
- Getters and Setters
-
deltaMode: int
deltaX: num
deltaY: num
deltaZ: double
directionInvertedFromDevice: bool
wheelDeltaX: int
wheelDeltaY: int
- Constructors
-
WheelEvent(String type, Window view, int deltaX, int deltaY, int detail, int screenX, int screenY, int clientX, int clientY, int button, bool canBubble, bool cancelable, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, EventTarget relatedTarget)
Static Fields
@
@
static const int DOM_DELTA_LINE = 1
@
@
static const int DOM_DELTA_PAGE = 2
@
@
static const int DOM_DELTA_PIXEL = 0
Fields
final int deltaMode
final num deltaX
final num deltaY
final double deltaZ
final bool directionInvertedFromDevice
final int wheelDeltaX
final int wheelDeltaY
Getters and Setters
@
@
int get deltaMode
@
num get deltaX
The amount that is expected to scroll horizontally, in units determined by deltaMode
.
See also:
WheelEvent.deltaX
(http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-WheelEvent-deltaX) from the W3C.
@
num get deltaY
The amount that is expected to scroll vertically, in units determined by deltaMode
.
See also:
WheelEvent.deltaY
(http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-WheelEvent-deltaY) from the W3C.
@
@
@
double get deltaZ
@
@
@
@
@
bool get directionInvertedFromDevice
@
@
@
int get wheelDeltaX
@
@
@
int get wheelDeltaY
Constructors
factory WheelEvent(String type, Window view, int deltaX, int deltaY, int detail, int screenX, int screenY, int clientX, int clientY, int button, bool canBubble, bool cancelable, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, EventTarget relatedTarget)
- Static Fields
-
PERSISTENT: int
TEMPORARY: int
animationEndEvent: EventStreamProvider
animationIterationEvent: EventStreamProvider
animationStartEvent: EventStreamProvider
beforeUnloadEvent: EventStreamProvider
contentLoadedEvent: EventStreamProvider
deviceMotionEvent: EventStreamProvider
deviceOrientationEvent: EventStreamProvider
hashChangeEvent: EventStreamProvider
messageEvent: EventStreamProvider
offlineEvent: EventStreamProvider
onlineEvent: EventStreamProvider
pageHideEvent: EventStreamProvider
pageShowEvent: EventStreamProvider
popStateEvent: EventStreamProvider
resizeEvent: EventStreamProvider
storageEvent: EventStreamProvider
supportsPointConversions: bool
unloadEvent: EventStreamProvider
- Fields
-
animationFrame: Future
applicationCache: ApplicationCache
closed: bool
console: Console
crypto: Crypto
css: Css
defaultStatus: String
defaultstatus: String
devicePixelRatio: double
document: Document
event: Event
history: History
indexedDB: IdbFactory
innerHeight: int
innerWidth: int
localStorage: Storage
location: Location
locationbar: BarProp
menubar: BarProp
name: String
navigator: Navigator
notifications: NotificationCenter
offscreenBuffering: bool
onAbort: Stream
onAnimationEnd: Stream
onAnimationIteration: Stream
onAnimationStart: Stream
onBeforeUnload: Stream
onBlur: Stream
onChange: Stream
onClick: Stream
onContentLoaded: Stream
onContextMenu: Stream
onDeviceMotion: Stream
onDeviceOrientation: Stream
onDoubleClick: Stream
onDrag: Stream
onDragEnd: Stream
onDragEnter: Stream
onDragLeave: Stream
onDragOver: Stream
onDragStart: Stream
onDrop: Stream
onError: Stream
onFocus: Stream
onHashChange: Stream
onInput: Stream
onInvalid: Stream
onKeyDown: Stream
onKeyPress: Stream
onKeyUp: Stream
onLoad: Stream
onMessage: Stream
onMouseDown: Stream
onMouseEnter: Stream
onMouseLeave: Stream
onMouseMove: Stream
onMouseOut: Stream
onMouseOver: Stream
onMouseUp: Stream
onMouseWheel: Stream
onOffline: Stream
onOnline: Stream
onPageHide: Stream
onPageShow: Stream
onPopState: Stream
onReset: Stream
onResize: Stream
onScroll: Stream
onSearch: Stream
onSelect: Stream
onStorage: Stream
onSubmit: Stream
onTouchCancel: Stream
onTouchEnd: Stream
onTouchMove: Stream
onTouchStart: Stream
onTransitionEnd: Stream
onUnload: Stream
opener: WindowBase
outerHeight: int
outerWidth: int
pageXOffset: int
pageYOffset: int
parent: WindowBase
performance: Performance
personalbar: BarProp
screen: Screen
screenLeft: int
screenTop: int
screenX: int
screenY: int
scrollX: int
scrollY: int
scrollbars: BarProp
self: WindowBase
sessionStorage: Storage
speechSynthesis: SpeechSynthesis
status: String
statusbar: BarProp
storageInfo: StorageInfo
styleMedia: StyleMedia
toolbar: BarProp
top: WindowBase
window: WindowBase
- Getters and Setters
-
animationFrame: Future<num>
applicationCache: ApplicationCache
closed: bool
console: Console
crypto: Crypto
css: Css
defaultStatus: String
defaultStatus=(String value)
defaultstatus: String
defaultstatus=(String value)
devicePixelRatio: double
document: Document
event: Event
history: History
indexedDB: IdbFactory
innerHeight: int
innerWidth: int
localStorage: Storage
location: Location
locationbar: BarProp
menubar: BarProp
name: String
name=(String value)
navigator: Navigator
notifications: NotificationCenter
offscreenBuffering: bool
onAbort: Stream<Event>
onAnimationEnd: Stream<AnimationEvent>
onAnimationIteration: Stream<AnimationEvent>
onAnimationStart: Stream<AnimationEvent>
onBeforeUnload: Stream<Event>
onBlur: Stream<Event>
onChange: Stream<Event>
onClick: Stream<MouseEvent>
onContentLoaded: Stream<Event>
onContextMenu: Stream<MouseEvent>
onDeviceMotion: Stream<DeviceMotionEvent>
onDeviceOrientation: Stream<DeviceOrientationEvent>
onDoubleClick: Stream<Event>
onDrag: Stream<MouseEvent>
onDragEnd: Stream<MouseEvent>
onDragEnter: Stream<MouseEvent>
onDragLeave: Stream<MouseEvent>
onDragOver: Stream<MouseEvent>
onDragStart: Stream<MouseEvent>
onDrop: Stream<MouseEvent>
onError: Stream<Event>
onFocus: Stream<Event>
onHashChange: Stream<Event>
onInput: Stream<Event>
onInvalid: Stream<Event>
onKeyDown: Stream<KeyboardEvent>
onKeyPress: Stream<KeyboardEvent>
onKeyUp: Stream<KeyboardEvent>
onLoad: Stream<Event>
onMessage: Stream<MessageEvent>
onMouseDown: Stream<MouseEvent>
onMouseEnter: Stream<MouseEvent>
onMouseLeave: Stream<MouseEvent>
onMouseMove: Stream<MouseEvent>
onMouseOut: Stream<MouseEvent>
onMouseOver: Stream<MouseEvent>
onMouseUp: Stream<MouseEvent>
onMouseWheel: Stream<WheelEvent>
onOffline: Stream<Event>
onOnline: Stream<Event>
onPageHide: Stream<Event>
onPageShow: Stream<Event>
onPopState: Stream<PopStateEvent>
onReset: Stream<Event>
onResize: Stream<Event>
onScroll: Stream<Event>
onSearch: Stream<Event>
onSelect: Stream<Event>
onStorage: Stream<StorageEvent>
onSubmit: Stream<Event>
onTouchCancel: Stream<TouchEvent>
onTouchEnd: Stream<TouchEvent>
onTouchMove: Stream<TouchEvent>
onTouchStart: Stream<TouchEvent>
onTransitionEnd: Stream<TransitionEvent>
onUnload: Stream<Event>
opener: WindowBase
outerHeight: int
outerWidth: int
pageXOffset: int
pageYOffset: int
parent: WindowBase
performance: Performance
personalbar: BarProp
screen: Screen
screenLeft: int
screenTop: int
screenX: int
screenY: int
scrollX: int
scrollY: int
scrollbars: BarProp
self: WindowBase
sessionStorage: Storage
speechSynthesis: SpeechSynthesis
status: String
status=(String value)
statusbar: BarProp
storageInfo: StorageInfo
styleMedia: StyleMedia
supportsPointConversions: bool
toolbar: BarProp
top: WindowBase
window: WindowBase
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
alert(String message): void
atob(String string): String
btoa(String string): String
cancelAnimationFrame(int id): void
captureEvents(): void
close(): void
confirm(String message): bool
convertPointFromNodeToPage(Node node, Point point): Point
convertPointFromPageToNode(Node node, Point point): Point
deregisterPort(String name): void
dispatchEvent(Event event): bool
find(String string, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog): bool
getMatchedCssRules(Element element, String pseudoElement): List<CssRule>
getSelection(): Selection
lookupPort(String name): SendPortSync
matchMedia(String query): MediaQueryList
moveBy(num x, num y): void
moveTo(Point p): void
open(String url, String name, String options): WindowBase
openDatabase(String name, String version, String displayName, int estimatedSize, DatabaseCallback creationCallback): SqlDatabase
postMessage(dynamic message, String targetOrigin, List<dynamic> messagePorts): void
print(): void
registerPort(String name, dynamic port): void
releaseEvents(): void
requestAnimationFrame(RequestAnimationFrameCallback callback): int
requestFileSystem(int size, bool persistent): Future<FileSystem>
resizeBy(num x, num y): void
resizeTo(num width, num height): void
resolveLocalFileSystemUrl(String url): Future<Entry>
scroll(int x, int y): void
scrollBy(int x, int y): void
scrollTo(int x, int y): void
setImmediate(TimeoutHandler callback): void
showModalDialog(String url, Object dialogArgs, String featureArgs): Object
stop(): void
toString(): String
Static Fields
@
@
@
static const int PERSISTENT = 1
@
@
@
static const int TEMPORARY = 0
@
@
@
@
@
static const EventStreamProvider animationEndEvent
@
@
@
@
@
static const EventStreamProvider animationIterationEvent
@
@
@
@
@
static const EventStreamProvider animationStartEvent
@
@
static const EventStreamProvider beforeUnloadEvent
@
@
static const EventStreamProvider contentLoadedEvent
@
@
@
static const EventStreamProvider deviceMotionEvent
@
@
@
static const EventStreamProvider deviceOrientationEvent
@
@
static const EventStreamProvider hashChangeEvent
@
@
static const EventStreamProvider messageEvent
@
@
static const EventStreamProvider offlineEvent
@
@
static const EventStreamProvider onlineEvent
@
@
static const EventStreamProvider pageHideEvent
@
@
static const EventStreamProvider pageShowEvent
@
@
static const EventStreamProvider popStateEvent
@
@
static const EventStreamProvider resizeEvent
@
@
static const EventStreamProvider storageEvent
static final bool supportsPointConversions
@
@
static const EventStreamProvider unloadEvent
Fields
final Future animationFrame
final ApplicationCache applicationCache
final bool closed
final Console console
final Crypto crypto
final Css css
String defaultStatus
String defaultstatus
final double devicePixelRatio
final Document document
final Event event
final History history
final IdbFactory indexedDB
final int innerHeight
final int innerWidth
final Storage localStorage
final Location location
final BarProp locationbar
final BarProp menubar
String name
final Navigator navigator
final NotificationCenter notifications
final bool offscreenBuffering
final Stream onAbort
final Stream onAnimationEnd
final Stream onAnimationIteration
final Stream onAnimationStart
final Stream onBeforeUnload
final Stream onBlur
final Stream onChange
final Stream onClick
final Stream onContentLoaded
final Stream onContextMenu
final Stream onDeviceMotion
final Stream onDeviceOrientation
final Stream onDoubleClick
final Stream onDrag
final Stream onDragEnd
final Stream onDragEnter
final Stream onDragLeave
final Stream onDragOver
final Stream onDragStart
final Stream onDrop
final Stream onError
final Stream onFocus
final Stream onHashChange
final Stream onInput
final Stream onInvalid
final Stream onKeyDown
final Stream onKeyPress
final Stream onKeyUp
final Stream onLoad
final Stream onMessage
final Stream onMouseDown
final Stream onMouseEnter
final Stream onMouseLeave
final Stream onMouseMove
final Stream onMouseOut
final Stream onMouseOver
final Stream onMouseUp
final Stream onMouseWheel
final Stream onOffline
final Stream onOnline
final Stream onPageHide
final Stream onPageShow
final Stream onPopState
final Stream onReset
final Stream onResize
final Stream onScroll
final Stream onSearch
final Stream onSelect
final Stream onStorage
final Stream onSubmit
final Stream onTouchCancel
final Stream onTouchEnd
final Stream onTouchMove
final Stream onTouchStart
final Stream onTransitionEnd
final Stream onUnload
final WindowBase opener
final int outerHeight
final int outerWidth
final int pageXOffset
final int pageYOffset
final WindowBase parent
final Performance performance
final BarProp personalbar
final Screen screen
final int screenLeft
final int screenTop
final int screenX
final int screenY
final int scrollX
final int scrollY
final BarProp scrollbars
final WindowBase self
final Storage sessionStorage
final SpeechSynthesis speechSynthesis
String status
final BarProp statusbar
final StorageInfo storageInfo
final StyleMedia styleMedia
final BarProp toolbar
final WindowBase top
final WindowBase window
Getters and Setters
Future<num> get animationFrame
Returns a Future that completes just before the window is about to repaint so the user can draw an animation frame.
If you need to later cancel this animation, use requestAnimationFrame
instead.
The Future
completes to a timestamp that represents a floating point value of the number of milliseconds that have elapsed since the page started to load (which is also the timestamp at this call to animationFrame).
Note: The code that runs when the future completes should call animationFrame
again for the animation to continue.
@
@
ApplicationCache get applicationCache
@
@
bool get closed
@
@
Console get console
@
@
@
Crypto get crypto
@
@
Css get css
@
@
String get defaultStatus
@
@
set defaultStatus=(String value)
@
@
@
String get defaultstatus
@
@
@
set defaultstatus=(String value)
@
@
@
double get devicePixelRatio
@
@
Document get document
@
@
@deprecated
Event get event
@
@
History get history
@
@
@
@
@
@
IdbFactory get indexedDB
@
@
int get innerHeight
@
@
int get innerWidth
@
@
Storage get localStorage
@
@
Location get location
@
@
BarProp get locationbar
@
@
BarProp get menubar
@
@
String get name
@
@
set name=(String value)
@
@
Navigator get navigator
@
@
@
@
@
@deprecated
NotificationCenter get notifications
@
@
@
bool get offscreenBuffering
@
@
Stream<Event> get onAbort
@
@
@
Stream<AnimationEvent> get onAnimationEnd
@
@
@
Stream<AnimationEvent> get onAnimationIteration
@
@
@
Stream<AnimationEvent> get onAnimationStart
@
@
Stream<Event> get onBeforeUnload
@
@
Stream<Event> get onBlur
@
@
Stream<Event> get onChange
@
@
Stream<MouseEvent> get onClick
@
@
Stream<Event> get onContentLoaded
@
@
Stream<MouseEvent> get onContextMenu
@
@
@
Stream<DeviceMotionEvent> get onDeviceMotion
@
@
@
Stream<DeviceOrientationEvent> get onDeviceOrientation
@
@
Stream<Event> get onDoubleClick
@
@
Stream<MouseEvent> get onDrag
@
@
Stream<MouseEvent> get onDragEnd
@
@
Stream<MouseEvent> get onDragEnter
@
@
Stream<MouseEvent> get onDragLeave
@
@
Stream<MouseEvent> get onDragOver
@
@
Stream<MouseEvent> get onDragStart
@
@
Stream<MouseEvent> get onDrop
@
@
Stream<Event> get onError
@
@
Stream<Event> get onFocus
@
@
Stream<Event> get onHashChange
@
@
Stream<Event> get onInput
@
@
Stream<Event> get onInvalid
@
@
Stream<KeyboardEvent> get onKeyDown
@
@
Stream<KeyboardEvent> get onKeyPress
@
@
Stream<KeyboardEvent> get onKeyUp
@
@
Stream<Event> get onLoad
@
@
Stream<MessageEvent> get onMessage
@
@
Stream<MouseEvent> get onMouseDown
@
@
@
Stream<MouseEvent> get onMouseEnter
@
@
@
Stream<MouseEvent> get onMouseLeave
@
@
Stream<MouseEvent> get onMouseMove
@
@
Stream<MouseEvent> get onMouseOut
@
@
Stream<MouseEvent> get onMouseOver
@
@
Stream<MouseEvent> get onMouseUp
@
@
Stream<WheelEvent> get onMouseWheel
@
@
Stream<Event> get onOffline
@
@
Stream<Event> get onOnline
@
@
Stream<Event> get onPageHide
@
@
Stream<Event> get onPageShow
@
@
Stream<PopStateEvent> get onPopState
@
@
Stream<Event> get onReset
@
@
Stream<Event> get onResize
@
@
Stream<Event> get onScroll
@
@
@
Stream<Event> get onSearch
@
@
Stream<Event> get onSelect
@
@
Stream<StorageEvent> get onStorage
@
@
Stream<Event> get onSubmit
@
@
@
Stream<TouchEvent> get onTouchCancel
@
@
@
Stream<TouchEvent> get onTouchEnd
@
@
@
Stream<TouchEvent> get onTouchMove
@
@
@
Stream<TouchEvent> get onTouchStart
@
@
Stream<TransitionEvent> get onTransitionEnd
@
@
Stream<Event> get onUnload
@
@
WindowBase get opener
@
@
int get outerHeight
@
@
int get outerWidth
@
@
int get pageXOffset
@
@
int get pageYOffset
@
@
WindowBase get parent
@
@
@
@
@
Performance get performance
@
@
@deprecated
BarProp get personalbar
@
@
Screen get screen
@
@
int get screenLeft
@
@
int get screenTop
@
@
int get screenX
@
@
int get screenY
@
@
int get scrollX
@
@
int get scrollY
@
@
BarProp get scrollbars
@
@
WindowBase get self
@
@
Storage get sessionStorage
@
@
@
SpeechSynthesis get speechSynthesis
@
@
String get status
@
@
set status=(String value)
@
@
BarProp get statusbar
@
@
@
@
@
@deprecated
StorageInfo get storageInfo
@
@
@
StyleMedia get styleMedia
static bool get supportsPointConversions
Checks whether convertPointFromNodeToPage
and convertPointFromPageToNode
are supported on the current platform.
@
@
BarProp get toolbar
@
@
WindowBase get top
@
@
WindowBase get window
Methods
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
void alert(String message)
@
@
String atob(String string)
@
@
String btoa(String string)
@
@
void cancelAnimationFrame(int id)
@
@
@deprecated
void captureEvents()
@
@
void close()
Closes the window.
This method should only succeed if the WindowBase
object is script-closeable and the window calling close
is allowed to navigate the window.
A window is script-closeable if it is either a window that was opened by another window, or if it is a window with only one document in its history.
A window might not be allowed to navigate, and therefore close, another window due to browser security features.
var other = window.open('http://www.example.com', 'foo');
// Closes other window, as it is script-closeable.
other.close();
print(other.closed()); // 'true'
window.location('http://www.mysite.com', 'foo');
// Does not close this window, as the history has changed.
window.close();
print(window.closed()); // 'false'
See also:
Window close discussion
(http://www.w3.org/TR/html5/browsers.html#dom-window-close) from the W3C
@
@
bool confirm(String message)
@
@
@
@
Point convertPointFromNodeToPage(Node node, Point point)
@
@
@
@
Point convertPointFromPageToNode(Node node, Point point)
void deregisterPort(String name)
Deregister a port
on this window under the given name
. This port may be retrieved by any isolate (or JavaScript script) running in this window.
@
@
bool dispatchEvent(Event event)
@
@
@
bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog)
@
@
@
List<CssRule> getMatchedCssRules(Element element, String pseudoElement)
@
@
Selection getSelection()
SendPortSync lookupPort(String name)
Lookup a port by its name
. Return null if no port is registered under name
.
@
@
MediaQueryList matchMedia(String query)
@
@
void moveBy(num x, num y)
void moveTo(Point p)
@
@
WindowBase open(String url, String name, String options)
@
@
@
@
@
@
SqlDatabase openDatabase(String name, String version, String displayName, int estimatedSize, DatabaseCallback creationCallback)
@
@
void postMessage(dynamic message, String targetOrigin, List<dynamic> messagePorts)
@
@
void print()
void registerPort(String name, dynamic port)
Register a port
on this window under the given name
. This port may be retrieved by any isolate (or JavaScript script) running in this window.
@
@
@deprecated
void releaseEvents()
@
@
int requestAnimationFrame(RequestAnimationFrameCallback callback)
Future<FileSystem> requestFileSystem(int size, bool persistent)
Access a sandboxed file system of the specified size
. If persistent
is true, the application will request permission from the user to create lasting storage. This storage cannot be freed without the user's permission. Returns a Future
whose value stores a reference to the sandboxed file system for use. Because the file system is sandboxed, applications cannot access file systems created in other web pages.
@
@
void resizeBy(num x, num y)
@
@
void resizeTo(num width, num height)
Future<Entry> resolveLocalFileSystemUrl(String url)
@
@
void scroll(int x, int y)
@
@
void scrollBy(int x, int y)
@
@
void scrollTo(int x, int y)
void setImmediate(TimeoutHandler callback)
Executes a callback
after the immediate execution stack has completed.
This differs from using Timer.run(callback) because Timer will run in about 4-15 milliseconds, depending on browser, depending on load. setImmediate
, in contrast, makes browser-specific changes in behavior to attempt to run immediately after the current frame unwinds, causing the future to complete after all processing has completed for the current event, but before any subsequent events.
@
@
Object showModalDialog(String url, Object dialogArgs, String featureArgs)
@
@
void stop()
@
@
String toString()
Returns a string representation of this object.
Abstract class WindowBase implements EventTarget
- Fields
-
closed: bool
history: HistoryBase
location: LocationBase
opener: WindowBase
parent: WindowBase
top: WindowBase
- Getters and Setters
-
closed: bool
history: HistoryBase
location: LocationBase
opener: WindowBase
parent: WindowBase
top: WindowBase
- Constructors
-
WindowBase()
- Methods
-
close(): void
postMessage(dynamic message, String targetOrigin, List<dynamic> messagePorts): void
An object representing the top-level context object for web scripting.
In a web browser, a Window
object represents the actual browser window. In a multi-tabbed browser, each tab has its own Window
object. A Window
is the container that displays a Document
's content. All web scripting happens within the context of a Window
object.
Note: This class represents any window, whereas Window
is used to access the properties and content of the current window.
See also:
DOM Window
(https://developer.mozilla.org/en-US/docs/DOM/window) from MDN.Window
(http://www.w3.org/TR/Window/) from the W3C.
Fields
final bool closed
final HistoryBase history
final LocationBase location
final WindowBase opener
final WindowBase parent
final WindowBase top
Getters and Setters
bool get closed
Indicates whether this window has been closed.
print(window.closed); // 'false'
window.close();
print(window.closed); // 'true'
HistoryBase get history
LocationBase get location
The current location of this window.
Location currentLocation = window.location;
print(currentLocation.href); // 'http://www.example.com:80/'
WindowBase get opener
A reference to the window that opened this one.
Window thisWindow = window;
WindowBase otherWindow = thisWindow.open('http://www.example.com/', 'foo');
print(otherWindow.opener == thisWindow); // 'true'
WindowBase get parent
A reference to the parent of this window.
If this WindowBase
has no parent, parent
will return a reference to the WindowBase
itself.
IFrameElement myIFrame = new IFrameElement();
window.document.body.elements.add(myIFrame);
print(myIframe.contentWindow.parent == window) // 'true'
print(window.parent == window) // 'true'
WindowBase get top
A reference to the topmost window in the window hierarchy.
If this WindowBase
is the topmost WindowBase
, top
will return a reference to the WindowBase
itself.
// Add an IFrame to the current window.
IFrameElement myIFrame = new IFrameElement();
window.document.body.elements.add(myIFrame);
// Add an IFrame inside of the other IFrame.
IFrameElement innerIFrame = new IFrameElement();
myIFrame.elements.add(innerIFrame);
print(myIframe.contentWindow.top == window) // 'true'
print(innerIFrame.contentWindow.top == window) // 'true'
print(window.top == window) // 'true'
Constructors
WindowBase()
Methods
void close()
Closes the window.
This method should only succeed if the WindowBase
object is script-closeable and the window calling close
is allowed to navigate the window.
A window is script-closeable if it is either a window that was opened by another window, or if it is a window with only one document in its history.
A window might not be allowed to navigate, and therefore close, another window due to browser security features.
var other = window.open('http://www.example.com', 'foo');
// Closes other window, as it is script-closeable.
other.close();
print(other.closed()); // 'true'
window.location('http://www.mysite.com', 'foo');
// Does not close this window, as the history has changed.
window.close();
print(window.closed()); // 'false'
See also:
Window close discussion
(http://www.w3.org/TR/html5/browsers.html#dom-window-close) from the W3C
void postMessage(dynamic message, String targetOrigin, List<dynamic> messagePorts)
@
@
@
Abstract class WindowBase64 extends NativeFieldWrapperClass1
- Constructors
-
WindowBase64()
- Methods
-
atob(String string): String
btoa(String string): String
Constructors
WindowBase64()
Methods
@
@
@
String atob(String string)
@
@
@
String btoa(String string)
@
@
@
Abstract class WindowTimers extends NativeFieldWrapperClass1
- Constructors
-
WindowTimers()
- Methods
-
clearInterval(int handle): void
clearTimeout(int handle): void
setInterval(Object handler, int timeout): int
setTimeout(Object handler, int timeout): int
Constructors
WindowTimers()
Methods
@
@
@
void clearInterval(int handle)
@
@
@
void clearTimeout(int handle)
@
@
@
int setInterval(Object handler, int timeout)
@
@
@
int setTimeout(Object handler, int timeout)
- Static Fields
-
errorEvent: EventStreamProvider
messageEvent: EventStreamProvider
supported: bool
- Fields
-
onError: Stream
onMessage: Stream
- Getters and Setters
-
onError: Stream<Event>
onMessage: Stream<MessageEvent>
supported: bool
- Constructors
-
Worker(String scriptUrl)
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
dispatchEvent(Event event): bool
postMessage(dynamic message, List<dynamic> messagePorts): void
terminate(): void
Static Fields
@
@
@
static const EventStreamProvider errorEvent
@
@
static const EventStreamProvider messageEvent
static final bool supported
Fields
final Stream onError
final Stream onMessage
Getters and Setters
@
@
@
Stream<Event> get onError
@
@
Stream<MessageEvent> get onMessage
static bool get supported
Checks if this type is supported on the current platform.
Constructors
@
@
factory Worker(String scriptUrl)
Methods
@
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
@
bool dispatchEvent(Event event)
@
@
void postMessage(dynamic message, List<dynamic> messagePorts)
@
@
void terminate()
@
@
@
Class WorkerConsole extends ConsoleBase
@
@
@
Class WorkerCrypto extends NativeFieldWrapperClass1
- Constructors
-
WorkerCrypto()
- Methods
-
getRandomValues(TypedData array): TypedData
Constructors
WorkerCrypto()
Methods
@
@
@
TypedData getRandomValues(TypedData array)
- Static Fields
-
PERSISTENT: int
TEMPORARY: int
errorEvent: EventStreamProvider
- Fields
-
console: WorkerConsole
crypto: WorkerCrypto
indexedDB: IdbFactory
location: _WorkerLocation
navigator: _WorkerNavigator
notifications: NotificationCenter
onError: Stream
performance: WorkerPerformance
self: WorkerGlobalScope
- Getters and Setters
-
console: WorkerConsole
crypto: WorkerCrypto
indexedDB: IdbFactory
location: _WorkerLocation
navigator: _WorkerNavigator
notifications: NotificationCenter
onError: Stream<Event>
performance: WorkerPerformance
self: WorkerGlobalScope
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
atob(String string): String
btoa(String string): String
clearInterval(int handle): void
clearTimeout(int handle): void
close(): void
dispatchEvent(Event event): bool
openDatabase(String name, String version, String displayName, int estimatedSize, DatabaseCallback creationCallback): SqlDatabase
openDatabaseSync(String name, String version, String displayName, int estimatedSize, DatabaseCallback creationCallback): _DatabaseSync
requestFileSystemSync(int type, int size): _DOMFileSystemSync
resolveLocalFileSystemSyncUrl(String url): _EntrySync
setInterval(Object handler, int timeout): int
setTimeout(Object handler, int timeout): int
webkitRequestFileSystem(int type, int size): Future<FileSystem>
webkitResolveLocalFileSystemUrl(String url): Future<Entry>
Static Fields
@
@
@
static const int PERSISTENT = 1
@
@
@
static const int TEMPORARY = 0
@
@
@
static const EventStreamProvider errorEvent
Fields
final WorkerConsole console
final WorkerCrypto crypto
final IdbFactory indexedDB
final _WorkerLocation location
final _WorkerNavigator navigator
final NotificationCenter notifications
final Stream onError
final WorkerPerformance performance
final WorkerGlobalScope self
Getters and Setters
@
@
@
WorkerConsole get console
@
@
@
WorkerCrypto get crypto
@
@
@
IdbFactory get indexedDB
@
@
@
_WorkerLocation get location
@
@
@
_WorkerNavigator get navigator
@
@
@
@
@
@
NotificationCenter get notifications
@
@
@
Stream<Event> get onError
@
@
@
WorkerPerformance get performance
@
@
@
WorkerGlobalScope get self
Methods
@
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
@
String atob(String string)
@
@
@
String btoa(String string)
@
@
@
void clearInterval(int handle)
@
@
@
void clearTimeout(int handle)
@
@
@
void close()
@
@
@
bool dispatchEvent(Event event)
@
@
@
SqlDatabase openDatabase(String name, String version, String displayName, int estimatedSize, DatabaseCallback creationCallback)
@
@
@
_DatabaseSync openDatabaseSync(String name, String version, String displayName, int estimatedSize, DatabaseCallback creationCallback)
@
@
@
@
@
@
_DOMFileSystemSync requestFileSystemSync(int type, int size)
@
@
@
@
@
@
_EntrySync resolveLocalFileSystemSyncUrl(String url)
@
@
@
int setInterval(Object handler, int timeout)
@
@
@
int setTimeout(Object handler, int timeout)
Future<FileSystem> webkitRequestFileSystem(int type, int size)
Future<Entry> webkitResolveLocalFileSystemUrl(String url)
@
@
@
Class WorkerPerformance extends NativeFieldWrapperClass1
- Constructors
-
WorkerPerformance()
- Methods
-
now(): double
Constructors
WorkerPerformance()
Methods
@
@
@
double now()
@
@
@deprecated
Class XPathEvaluator extends NativeFieldWrapperClass1
- Constructors
-
XPathEvaluator()
- Methods
-
createExpression(String expression, XPathNSResolver resolver): XPathExpression
createNSResolver(Node nodeResolver): XPathNSResolver
evaluate(String expression, Node contextNode, XPathNSResolver resolver, int type, XPathResult inResult): XPathResult
Constructors
@
@
factory XPathEvaluator()
Methods
@
@
XPathExpression createExpression(String expression, XPathNSResolver resolver)
@
@
XPathNSResolver createNSResolver(Node nodeResolver)
@
@
XPathResult evaluate(String expression, Node contextNode, XPathNSResolver resolver, int type, XPathResult inResult)
@
@
@deprecated
Class XPathExpression extends NativeFieldWrapperClass1
- Constructors
-
XPathExpression()
- Methods
-
evaluate(Node contextNode, int type, XPathResult inResult): XPathResult
Constructors
XPathExpression()
Methods
@
@
XPathResult evaluate(Node contextNode, int type, XPathResult inResult)
@
@
@deprecated
Class XPathNSResolver extends NativeFieldWrapperClass1
- Constructors
-
XPathNSResolver()
- Methods
-
lookupNamespaceUri(String prefix): String
Constructors
XPathNSResolver()
Methods
@
@
String lookupNamespaceUri(String prefix)
@
@
@deprecated
Class XPathResult extends NativeFieldWrapperClass1
- Static Fields
-
ANY_TYPE: int
ANY_UNORDERED_NODE_TYPE: int
BOOLEAN_TYPE: int
FIRST_ORDERED_NODE_TYPE: int
NUMBER_TYPE: int
ORDERED_NODE_ITERATOR_TYPE: int
ORDERED_NODE_SNAPSHOT_TYPE: int
STRING_TYPE: int
UNORDERED_NODE_ITERATOR_TYPE: int
UNORDERED_NODE_SNAPSHOT_TYPE: int
- Fields
-
booleanValue: bool
invalidIteratorState: bool
numberValue: double
resultType: int
singleNodeValue: Node
snapshotLength: int
stringValue: String
- Getters and Setters
-
booleanValue: bool
invalidIteratorState: bool
numberValue: double
resultType: int
singleNodeValue: Node
snapshotLength: int
stringValue: String
- Constructors
-
XPathResult()
- Methods
-
iterateNext(): Node
snapshotItem(int index): Node
Static Fields
@
@
static const int ANY_TYPE = 0
@
@
static const int ANY_UNORDERED_NODE_TYPE = 8
@
@
static const int BOOLEAN_TYPE = 3
@
@
static const int FIRST_ORDERED_NODE_TYPE = 9
@
@
static const int NUMBER_TYPE = 1
@
@
static const int ORDERED_NODE_ITERATOR_TYPE = 5
@
@
static const int ORDERED_NODE_SNAPSHOT_TYPE = 7
@
@
static const int STRING_TYPE = 2
@
@
static const int UNORDERED_NODE_ITERATOR_TYPE = 4
@
@
static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6
Fields
final bool booleanValue
final bool invalidIteratorState
final double numberValue
final int resultType
final Node singleNodeValue
final int snapshotLength
final String stringValue
Getters and Setters
@
@
bool get booleanValue
@
@
bool get invalidIteratorState
@
@
double get numberValue
@
@
int get resultType
@
@
Node get singleNodeValue
@
@
int get snapshotLength
@
@
String get stringValue
Constructors
XPathResult()
Methods
@
@
Node iterateNext()
@
@
Node snapshotItem(int index)
@
@
@
Class XmlHttpRequestEventTarget extends EventTarget
- Static Fields
-
abortEvent: EventStreamProvider
errorEvent: EventStreamProvider
loadEndEvent: EventStreamProvider
loadEvent: EventStreamProvider
loadStartEvent: EventStreamProvider
progressEvent: EventStreamProvider
timeoutEvent: EventStreamProvider
- Fields
-
onAbort: Stream
onError: Stream
onLoad: Stream
onLoadEnd: Stream
onLoadStart: Stream
onProgress: Stream
onTimeout: Stream
- Getters and Setters
-
onAbort: Stream<ProgressEvent>
onError: Stream<ProgressEvent>
onLoad: Stream<ProgressEvent>
onLoadEnd: Stream<ProgressEvent>
onLoadStart: Stream<ProgressEvent>
onProgress: Stream<ProgressEvent>
onTimeout: Stream<ProgressEvent>
- Methods
-
$dom_addEventListener(String type, EventListener listener, bool useCapture): void
$dom_removeEventListener(String type, EventListener listener, bool useCapture): void
dispatchEvent(Event event): bool
Static Fields
@
@
@
static const EventStreamProvider abortEvent
@
@
@
static const EventStreamProvider errorEvent
@
@
@
static const EventStreamProvider loadEndEvent
@
@
@
static const EventStreamProvider loadEvent
@
@
@
static const EventStreamProvider loadStartEvent
@
@
@
static const EventStreamProvider progressEvent
@
@
@
static const EventStreamProvider timeoutEvent
Fields
final Stream onAbort
final Stream onError
final Stream onLoad
final Stream onLoadEnd
final Stream onLoadStart
final Stream onProgress
final Stream onTimeout
Getters and Setters
@
@
@
Stream<ProgressEvent> get onAbort
@
@
@
Stream<ProgressEvent> get onError
@
@
@
Stream<ProgressEvent> get onLoad
@
@
@
@
@
@
@
Stream<ProgressEvent> get onLoadEnd
@
@
@
Stream<ProgressEvent> get onLoadStart
@
@
@
@
@
@
@
Stream<ProgressEvent> get onProgress
@
@
@
Stream<ProgressEvent> get onTimeout
Methods
@
@
@
void $dom_addEventListener(String type, EventListener listener, bool useCapture)
@
@
@
void $dom_removeEventListener(String type, EventListener listener, bool useCapture)
@
@
@
bool dispatchEvent(Event event)
@
@
@deprecated
Class XmlSerializer extends NativeFieldWrapperClass1
- Constructors
-
XmlSerializer()
- Methods
-
serializeToString(Node node): String
Constructors
@
@
factory XmlSerializer()
Methods
@
@
String serializeToString(Node node)
@
@
@
@
@
@deprecated
Class XsltProcessor extends NativeFieldWrapperClass1
- Static Fields
-
supported: bool
- Getters and Setters
-
supported: bool
- Constructors
-
XsltProcessor()
- Methods
-
clearParameters(): void
getParameter(String namespaceURI, String localName): String
importStylesheet(Node stylesheet): void
removeParameter(String namespaceURI, String localName): void
reset(): void
setParameter(String namespaceURI, String localName, String value): void
transformToDocument(Node source): Document
transformToFragment(Node source, Document docVal): DocumentFragment
Static Fields
static final bool supported
Getters and Setters
static bool get supported
Checks if this type is supported on the current platform.
Constructors
@
@
factory XsltProcessor()
Methods
@
@
void clearParameters()
@
@
String getParameter(String namespaceURI, String localName)
@
@
void importStylesheet(Node stylesheet)
@
@
void removeParameter(String namespaceURI, String localName)
@
@
void reset()
@
@
void setParameter(String namespaceURI, String localName, String value)
@
@
Document transformToDocument(Node source)
@
@
DocumentFragment transformToFragment(Node source, Document docVal)