build method
Implementation
@override
InlineSpan build() {
double? width;
double? height;
if (attribute['width'] != null) {
width = double.tryParse(attribute['width'] ?? "0");
}
if (attribute['height'] != null) {
height = double.tryParse(attribute['height'] ?? "0");
}
List<String> medias = (attribute['src'] ?? "").split(" ");
return WidgetSpan(
child: SizedBox(
height: height,
width: width,
child: MediasWidget(
medias: medias,
),
),
);
}