export method
Implementation
@override
export() {
final values = Map.from(_initial.value['value']);
if (text != null) {
values['Text'] = text;
}
if (startTime != null) {
values['Start'] = convertMsToSubtitleFormat(startTime!);
}
if (endTime != null) {
values['End'] = convertMsToSubtitleFormat(endTime!);
}
if (withoutTags != null) {
values['Text'] = values['Text'].replaceAll(RegExp(r'/{.*?}/gim'), "");
}
if (style != null) {
values['Style'] = style;
}
_initial.value['value'] = values;
return _initial;
}