MiuixVectorIcon class
矢量图标。对应 Compose 的 ImageVector。
viewport 为路径坐标所在的视口尺寸(viewportWidth/Height);
intrinsicSize 为默认渲染尺寸(defaultWidth/Height,逻辑像素)——
当 MiuixIcon 未显式指定 size 时按此尺寸渲染(对应 Compose 的 intrinsic size 回退)。
- Annotations
Constructors
-
MiuixVectorIcon({required String name, required Size viewport, required Size intrinsicSize, required List<
MiuixVectorPath> paths}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- intrinsicSize → Size
-
默认渲染尺寸(逻辑像素)。
final
- name → String
-
图标名(对应
ImageVector.Builder(name = ...)),用于调试与语义回退。final -
paths
→ List<
MiuixVectorPath> -
组成该图标的所有路径(按绘制顺序)。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- viewport → Size
-
路径视口尺寸。
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited