textAnnotations property Null safety

List<EntityAnnotation> textAnnotations

If present, full text detection has completed successfully.

Implementation

List<EntityAnnotation> get textAnnotations =>
    textAnnotationsList ?? <EntityAnnotation>[];