TextContent constructor

TextContent({
  1. Annotations? annotations,
  2. required String text,
  3. Map<String, Object?>? meta,
  4. Map<String, Object?>? extra,
})

Implementation

TextContent({
  Annotations? annotations,
  required String text,
  Map<String, Object?>? meta,
  Map<String, Object?>? extra,
}) : super.build({
        ...?extra,
        if (annotations != null) 'annotations': $encode(annotations),
        'text': $encode(text),
        'type': 'text',
        if (meta != null) '_meta': $encode(meta),
      });