TextContent constructor

TextContent({
  1. required String text,
  2. Annotations? annotations,
  3. Meta? meta,
})

Implementation

factory TextContent({
  required String text,
  Annotations? annotations,
  Meta? meta,
}) => TextContent.fromMap({
  'text': text,
  'type': expectedType,
  if (annotations != null) 'annotations': annotations,
  if (meta != null) '_meta': meta,
});