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

          Line data    Source code
       1             : // GENERATED CODE - DO NOT MODIFY BY HAND
       2             : // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides
       3             : 
       4             : part of 'simple_text.dart';
       5             : 
       6             : // **************************************************************************
       7             : // FreezedGenerator
       8             : // **************************************************************************
       9             : 
      10           0 : T _$identity<T>(T value) => value;
      11             : 
      12           0 : final _privateConstructorUsedError = UnsupportedError(
      13             :     'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
      14             : 
      15           1 : SimpleText _$SimpleTextFromJson(Map<String, dynamic> json) {
      16           1 :   return _SimpleText.fromJson(json);
      17             : }
      18             : 
      19             : /// @nodoc
      20             : class _$SimpleTextTearOff {
      21           1 :   const _$SimpleTextTearOff();
      22             : 
      23           0 :   _SimpleText call(
      24             :       {required List<Span> spans, required String text, required String type}) {
      25           0 :     return _SimpleText(
      26             :       spans: spans,
      27             :       text: text,
      28             :       type: type,
      29             :     );
      30             :   }
      31             : 
      32           0 :   SimpleText fromJson(Map<String, Object> json) {
      33           0 :     return SimpleText.fromJson(json);
      34             :   }
      35             : }
      36             : 
      37             : /// @nodoc
      38             : const $SimpleText = _$SimpleTextTearOff();
      39             : 
      40             : /// @nodoc
      41             : mixin _$SimpleText {
      42           0 :   List<Span> get spans => throw _privateConstructorUsedError;
      43           0 :   String get text => throw _privateConstructorUsedError;
      44           0 :   String get type => throw _privateConstructorUsedError;
      45             : 
      46           0 :   Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
      47           0 :   @JsonKey(ignore: true)
      48             :   $SimpleTextCopyWith<SimpleText> get copyWith =>
      49           0 :       throw _privateConstructorUsedError;
      50             : }
      51             : 
      52             : /// @nodoc
      53             : abstract class $SimpleTextCopyWith<$Res> {
      54             :   factory $SimpleTextCopyWith(
      55             :           SimpleText value, $Res Function(SimpleText) then) =
      56             :       _$SimpleTextCopyWithImpl<$Res>;
      57             :   $Res call({List<Span> spans, String text, String type});
      58             : }
      59             : 
      60             : /// @nodoc
      61             : class _$SimpleTextCopyWithImpl<$Res> implements $SimpleTextCopyWith<$Res> {
      62           0 :   _$SimpleTextCopyWithImpl(this._value, this._then);
      63             : 
      64             :   final SimpleText _value;
      65             :   // ignore: unused_field
      66             :   final $Res Function(SimpleText) _then;
      67             : 
      68           0 :   @override
      69             :   $Res call({
      70             :     Object? spans = freezed,
      71             :     Object? text = freezed,
      72             :     Object? type = freezed,
      73             :   }) {
      74           0 :     return _then(_value.copyWith(
      75           0 :       spans: spans == freezed
      76           0 :           ? _value.spans
      77             :           : spans // ignore: cast_nullable_to_non_nullable
      78             :               as List<Span>,
      79           0 :       text: text == freezed
      80           0 :           ? _value.text
      81             :           : text // ignore: cast_nullable_to_non_nullable
      82             :               as String,
      83           0 :       type: type == freezed
      84           0 :           ? _value.type
      85             :           : type // ignore: cast_nullable_to_non_nullable
      86             :               as String,
      87             :     ));
      88             :   }
      89             : }
      90             : 
      91             : /// @nodoc
      92             : abstract class _$SimpleTextCopyWith<$Res> implements $SimpleTextCopyWith<$Res> {
      93             :   factory _$SimpleTextCopyWith(
      94             :           _SimpleText value, $Res Function(_SimpleText) then) =
      95             :       __$SimpleTextCopyWithImpl<$Res>;
      96             :   @override
      97             :   $Res call({List<Span> spans, String text, String type});
      98             : }
      99             : 
     100             : /// @nodoc
     101             : class __$SimpleTextCopyWithImpl<$Res> extends _$SimpleTextCopyWithImpl<$Res>
     102             :     implements _$SimpleTextCopyWith<$Res> {
     103           0 :   __$SimpleTextCopyWithImpl(
     104             :       _SimpleText _value, $Res Function(_SimpleText) _then)
     105           0 :       : super(_value, (v) => _then(v as _SimpleText));
     106             : 
     107           0 :   @override
     108           0 :   _SimpleText get _value => super._value as _SimpleText;
     109             : 
     110           0 :   @override
     111             :   $Res call({
     112             :     Object? spans = freezed,
     113             :     Object? text = freezed,
     114             :     Object? type = freezed,
     115             :   }) {
     116           0 :     return _then(_SimpleText(
     117           0 :       spans: spans == freezed
     118           0 :           ? _value.spans
     119             :           : spans // ignore: cast_nullable_to_non_nullable
     120             :               as List<Span>,
     121           0 :       text: text == freezed
     122           0 :           ? _value.text
     123             :           : text // ignore: cast_nullable_to_non_nullable
     124             :               as String,
     125           0 :       type: type == freezed
     126           0 :           ? _value.type
     127             :           : type // ignore: cast_nullable_to_non_nullable
     128             :               as String,
     129             :     ));
     130             :   }
     131             : }
     132             : 
     133             : /// @nodoc
     134             : @JsonSerializable()
     135             : class _$_SimpleText implements _SimpleText {
     136           1 :   _$_SimpleText({required this.spans, required this.text, required this.type});
     137             : 
     138           1 :   factory _$_SimpleText.fromJson(Map<String, dynamic> json) =>
     139           1 :       _$_$_SimpleTextFromJson(json);
     140             : 
     141             :   @override
     142             :   final List<Span> spans;
     143             :   @override
     144             :   final String text;
     145             :   @override
     146             :   final String type;
     147             : 
     148           0 :   @override
     149             :   String toString() {
     150           0 :     return 'SimpleText(spans: $spans, text: $text, type: $type)';
     151             :   }
     152             : 
     153           0 :   @override
     154             :   bool operator ==(dynamic other) {
     155             :     return identical(this, other) ||
     156           0 :         (other is _SimpleText &&
     157           0 :             (identical(other.spans, spans) ||
     158           0 :                 const DeepCollectionEquality().equals(other.spans, spans)) &&
     159           0 :             (identical(other.text, text) ||
     160           0 :                 const DeepCollectionEquality().equals(other.text, text)) &&
     161           0 :             (identical(other.type, type) ||
     162           0 :                 const DeepCollectionEquality().equals(other.type, type)));
     163             :   }
     164             : 
     165           0 :   @override
     166             :   int get hashCode =>
     167           0 :       runtimeType.hashCode ^
     168           0 :       const DeepCollectionEquality().hash(spans) ^
     169           0 :       const DeepCollectionEquality().hash(text) ^
     170           0 :       const DeepCollectionEquality().hash(type);
     171             : 
     172           0 :   @JsonKey(ignore: true)
     173             :   @override
     174             :   _$SimpleTextCopyWith<_SimpleText> get copyWith =>
     175           0 :       __$SimpleTextCopyWithImpl<_SimpleText>(this, _$identity);
     176             : 
     177           0 :   @override
     178             :   Map<String, dynamic> toJson() {
     179           0 :     return _$_$_SimpleTextToJson(this);
     180             :   }
     181             : }
     182             : 
     183             : abstract class _SimpleText implements SimpleText {
     184             :   factory _SimpleText(
     185             :       {required List<Span> spans,
     186             :       required String text,
     187             :       required String type}) = _$_SimpleText;
     188             : 
     189             :   factory _SimpleText.fromJson(Map<String, dynamic> json) =
     190             :       _$_SimpleText.fromJson;
     191             : 
     192           0 :   @override
     193           0 :   List<Span> get spans => throw _privateConstructorUsedError;
     194           0 :   @override
     195           0 :   String get text => throw _privateConstructorUsedError;
     196           0 :   @override
     197           0 :   String get type => throw _privateConstructorUsedError;
     198           0 :   @override
     199             :   @JsonKey(ignore: true)
     200             :   _$SimpleTextCopyWith<_SimpleText> get copyWith =>
     201           0 :       throw _privateConstructorUsedError;
     202             : }

Generated by: LCOV version 1.15