ImageMarkup class

图片标记

有效的Tag名称:img 参数:

  • src: string, require
  • width: double
  • height: height

示例:

<img src="https://example.com/img.png" height=100 />
Inheritance

Constructors

ImageMarkup.new([PlaceholderAlignment? alignment, TextBaseline? baseline, ImageMarkupBuilder? imageBuilder = imageMarkupBuilder])
const

Properties

alias Set<String>?
标签别名
finalinherited
alignment PlaceholderAlignment?
How the placeholder aligns vertically with the text.
final
baseline TextBaseline?
The TextBaseline to align against when using ui.PlaceholderAlignment.baseline, ui.PlaceholderAlignment.aboveBaseline, and ui.PlaceholderAlignment.belowBaseline.
final
hashCode int
The hash code for this object.
no setterinherited
imageBuilder ImageMarkupBuilder?
图片构建器
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String
标签名称
finalinherited
tags List<String>
支持的标签集合
no setterinherited

Methods

markup(List<HypertextSpan>? children, StartTagToken token, HypertextEventHandler? eventHandler, ColorMapper? colorMapper) HypertextSpan
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onMarkup(List<HypertextSpan>? children, MarkupContext ctx) HypertextSpan
override
toString() String
A string representation of this object.
inherited

Operators

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