LCOV - code coverage report
Current view: top level - types/simple/simple_text - simple_text.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 2 2 100.0 %
Date: 2021-05-31 17:15:31 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:flusmic/src/models/types/simple/span/span.dart';
       2             : import 'package:freezed_annotation/freezed_annotation.dart';
       3             : 
       4             : part 'simple_text.freezed.dart';
       5             : part 'simple_text.g.dart';
       6             : 
       7             : ///SimpleText model
       8             : ///
       9             : ///Represents a text inside RichText
      10             : @freezed
      11             : class SimpleText with _$SimpleText {
      12             :   ///Default constructor
      13             :   factory SimpleText({
      14             :     required List<Span> spans,
      15             :     required String text,
      16             :     required String type,
      17             :   }) = _SimpleText;
      18             : 
      19             :   ///Creates a SimpleText object from json
      20           1 :   factory SimpleText.fromJson(Map<String, dynamic> json) =>
      21           1 :       _$SimpleTextFromJson(json);
      22             : }

Generated by: LCOV version 1.15