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({
  Keys.text: text,
  Keys.type: expectedType,
  if (annotations != null) Keys.annotations: annotations,
  if (meta != null) Keys.meta: meta,
});