Created
May 26, 2023 17:41
-
-
Save saltedpotatos/b9c30051dfaca94315fdf6d6a3e0987f to your computer and use it in GitHub Desktop.
build_runner 2.4.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sdk: ">=3.0.0 < 4.0.0" | |
| flutter: ">=1.17.0" | |
| freezed_annotation: ^2.2.0 | |
| riverpod_annotation: ^2.1.1 | |
| freezed: ^2.3.2 | |
| build_runner: ^2.4.4 | |
| custom_lint: ^0.4.0 | |
| riverpod_lint: ^1.3.2 | |
| riverpod_generator: ^2.2.3 | |
| ----- | |
| import 'package:freezed_annotation/freezed_annotation.dart'; | |
| part 'test.freezed.dart'; | |
| @Freezed(makeCollectionsUnmodifiable: false) | |
| class Success with _$Success { | |
| const factory Success.mySuperSuccess() = MySuperSuccess; | |
| } | |
| ------ | |
| // coverage:ignore-file | |
| // GENERATED CODE - DO NOT MODIFY BY HAND | |
| // ignore_for_file: type=lint | |
| // 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, invalid_annotation_target, unnecessary_question_mark | |
| part of 'test.dart'; | |
| // ************************************************************************** | |
| // FreezedGenerator | |
| // ************************************************************************** | |
| T _$identity<T>(T value) => value; | |
| final _privateConstructorUsedError = UnsupportedError( | |
| '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 information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); | |
| /// @nodoc | |
| mixin _$Success { | |
| @optionalTypeArgs | |
| TResult when<TResult extends Object?>({ | |
| required TResult Function() mySuperSuccess, | |
| }) => | |
| throw _privateConstructorUsedError; | |
| @optionalTypeArgs | |
| TResult? whenOrNull<TResult extends Object?>({ | |
| TResult? Function()? mySuperSuccess, | |
| }) => | |
| throw _privateConstructorUsedError; | |
| @optionalTypeArgs | |
| TResult maybeWhen<TResult extends Object?>({ | |
| TResult Function()? mySuperSuccess, | |
| required TResult orElse(), | |
| }) => | |
| throw _privateConstructorUsedError; | |
| @optionalTypeArgs | |
| TResult map<TResult extends Object?>({ | |
| required TResult Function(MySuperSuccess value) mySuperSuccess, | |
| }) => | |
| throw _privateConstructorUsedError; | |
| @optionalTypeArgs | |
| TResult? mapOrNull<TResult extends Object?>({ | |
| TResult? Function(MySuperSuccess value)? mySuperSuccess, | |
| }) => | |
| throw _privateConstructorUsedError; | |
| @optionalTypeArgs | |
| TResult maybeMap<TResult extends Object?>({ | |
| TResult Function(MySuperSuccess value)? mySuperSuccess, | |
| required TResult orElse(), | |
| }) => | |
| throw _privateConstructorUsedError; | |
| } | |
| /// @nodoc | |
| abstract class $SuccessCopyWith<$Res> { | |
| factory $SuccessCopyWith(Success value, $Res Function(Success) then) = | |
| _$SuccessCopyWithImpl<$Res, Success>; | |
| } | |
| /// @nodoc | |
| class _$SuccessCopyWithImpl<$Res, $Val extends Success> | |
| implements $SuccessCopyWith<$Res> { | |
| _$SuccessCopyWithImpl(this._value, this._then); | |
| // ignore: unused_field | |
| final $Val _value; | |
| // ignore: unused_field | |
| final $Res Function($Val) _then; | |
| } | |
| /// @nodoc | |
| abstract class _$$MySuperSuccessCopyWith<$Res> { | |
| factory _$$MySuperSuccessCopyWith( | |
| _$MySuperSuccess value, $Res Function(_$MySuperSuccess) then) = | |
| __$$MySuperSuccessCopyWithImpl<$Res>; | |
| } | |
| /// @nodoc | |
| class __$$MySuperSuccessCopyWithImpl<$Res> | |
| extends _$SuccessCopyWithImpl<$Res, _$MySuperSuccess> | |
| implements _$$MySuperSuccessCopyWith<$Res> { | |
| __$$MySuperSuccessCopyWithImpl( | |
| _$MySuperSuccess _value, $Res Function(_$MySuperSuccess) _then) | |
| : super(_value, _then); | |
| } | |
| /// @nodoc | |
| class _$MySuperSuccess implements MySuperSuccess { | |
| const _$MySuperSuccess(); | |
| @override | |
| String toString() { | |
| return 'Success.mySuperSuccess()'; | |
| } | |
| @override | |
| bool operator ==(dynamic other) { | |
| return identical(this, other) || | |
| (other.runtimeType == runtimeType && other is _$MySuperSuccess); | |
| } | |
| @override | |
| int get hashCode => runtimeType.hashCode; | |
| @override | |
| @optionalTypeArgs | |
| TResult when<TResult extends Object?>({ | |
| required TResult Function() mySuperSuccess, | |
| }) { | |
| return mySuperSuccess(); | |
| } | |
| @override | |
| @optionalTypeArgs | |
| TResult? whenOrNull<TResult extends Object?>({ | |
| TResult? Function()? mySuperSuccess, | |
| }) { | |
| return mySuperSuccess?.call(); | |
| } | |
| @override | |
| @optionalTypeArgs | |
| TResult maybeWhen<TResult extends Object?>({ | |
| TResult Function()? mySuperSuccess, | |
| required TResult orElse(), | |
| }) { | |
| if (mySuperSuccess != null) { | |
| return mySuperSuccess(); | |
| } | |
| return orElse(); | |
| } | |
| @override | |
| @optionalTypeArgs | |
| TResult map<TResult extends Object?>({ | |
| required TResult Function(MySuperSuccess value) mySuperSuccess, | |
| }) { | |
| return mySuperSuccess(this); | |
| } | |
| @override | |
| @optionalTypeArgs | |
| TResult? mapOrNull<TResult extends Object?>({ | |
| TResult? Function(MySuperSuccess value)? mySuperSuccess, | |
| }) { | |
| return mySuperSuccess?.call(this); | |
| } | |
| @override | |
| @optionalTypeArgs | |
| TResult maybeMap<TResult extends Object?>({ | |
| TResult Function(MySuperSuccess value)? mySuperSuccess, | |
| required TResult orElse(), | |
| }) { | |
| if (mySuperSuccess != null) { | |
| return mySuperSuccess(this); | |
| } | |
| return orElse(); | |
| } | |
| } | |
| abstract class MySuperSuccess implements Success { | |
| const factory MySuperSuccess() = _$MySuperSuccess; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment