MarkupContext class
HyperMarkup的上下文
Constructors
-
MarkupContext.new(String tag, Map<
String, String> ? attrs, bool isSelfClose, HypertextEventHandler? _eventHandler, ColorMapper? colorMapper) -
const
Properties
-
attrs
→ Map<
String, String> -
标签上的属性
final
- colorMapper → ColorMapper
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSelfClose → bool
-
是否时自关闭标签
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag → String
-
final
Methods
-
fireEvent(
MarkupEvent event) → bool - 向外部发送事件
-
get(
String key, [String? fallbackKey]) → String? -
inherited
-
getBy(
List< String> ks, [String? fallbackKey]) → String? -
inherited
-
getColor(
String key, [ColorMapper? colorMapper = kBasicCSSColors]) → Color? -
inherited
-
getColorBy(
List< String> ks, {String? fallbackKey, ColorMapper? colorMapper = kBasicCSSColors}) → Color? -
inherited
-
getColors(
String key, {String splitPatter = r'(\s*,+\s*)+', ColorMapper? colorMapper = kBasicCSSColors}) → List< Color> ? -
inherited
-
getDouble(
String key) → double? -
inherited
-
getDoubleBy(
List< String> ks, [String? fallbackKey]) → double? -
inherited
-
getDoubles(
String key, [String splitPatter = r'(\s*,+\s*)+']) → List< double> ? -
inherited
-
getInt(
String key) → int? -
inherited
-
getIntBy(
List< String> ks, [String? fallbackKey]) → int? -
inherited
-
getInts(
String key, [String splitPatter = r'(\s*,+\s*)+']) → List< int> ? -
inherited
-
hasAttr(
String key) → bool -
inherited
-
hasValue(
String key) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
require(
String key, [String? fallbackKey]) → String -
inherited
-
switchT<
T, TT> (TT t, Map< TT, T?> m) → T? -
inherited
-
switchT2<
T, TT> (TT t, Map< TT, T? Function(TT value)> m) → T? -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
whenExist<
T> (Map< String, T?> m) → T? -
当某个Key存在
inherited
-
whenExist2<
T> (Map< String, T? Function(String value)> m) → T? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited