-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into animate-timeline
- Loading branch information
Showing
30 changed files
with
674 additions
and
479 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
part 'acct.freezed.dart'; | ||
part 'acct.g.dart'; | ||
|
||
@freezed | ||
class Acct with _$Acct { | ||
const factory Acct({ | ||
required String host, | ||
required String username, | ||
}) = _Acct; | ||
const Acct._(); | ||
|
||
factory Acct.fromJson(Map<String, Object?> json) => _$AcctFromJson(json); | ||
|
||
@override | ||
String toString() { | ||
return "@$username@$host"; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
// 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 'acct.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'); | ||
|
||
Acct _$AcctFromJson(Map<String, dynamic> json) { | ||
return _Acct.fromJson(json); | ||
} | ||
|
||
/// @nodoc | ||
mixin _$Acct { | ||
String get host => throw _privateConstructorUsedError; | ||
String get username => throw _privateConstructorUsedError; | ||
|
||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; | ||
@JsonKey(ignore: true) | ||
$AcctCopyWith<Acct> get copyWith => throw _privateConstructorUsedError; | ||
} | ||
|
||
/// @nodoc | ||
abstract class $AcctCopyWith<$Res> { | ||
factory $AcctCopyWith(Acct value, $Res Function(Acct) then) = | ||
_$AcctCopyWithImpl<$Res, Acct>; | ||
@useResult | ||
$Res call({String host, String username}); | ||
} | ||
|
||
/// @nodoc | ||
class _$AcctCopyWithImpl<$Res, $Val extends Acct> | ||
implements $AcctCopyWith<$Res> { | ||
_$AcctCopyWithImpl(this._value, this._then); | ||
|
||
// ignore: unused_field | ||
final $Val _value; | ||
// ignore: unused_field | ||
final $Res Function($Val) _then; | ||
|
||
@pragma('vm:prefer-inline') | ||
@override | ||
$Res call({ | ||
Object? host = null, | ||
Object? username = null, | ||
}) { | ||
return _then(_value.copyWith( | ||
host: null == host | ||
? _value.host | ||
: host // ignore: cast_nullable_to_non_nullable | ||
as String, | ||
username: null == username | ||
? _value.username | ||
: username // ignore: cast_nullable_to_non_nullable | ||
as String, | ||
) as $Val); | ||
} | ||
} | ||
|
||
/// @nodoc | ||
abstract class _$$_AcctCopyWith<$Res> implements $AcctCopyWith<$Res> { | ||
factory _$$_AcctCopyWith(_$_Acct value, $Res Function(_$_Acct) then) = | ||
__$$_AcctCopyWithImpl<$Res>; | ||
@override | ||
@useResult | ||
$Res call({String host, String username}); | ||
} | ||
|
||
/// @nodoc | ||
class __$$_AcctCopyWithImpl<$Res> extends _$AcctCopyWithImpl<$Res, _$_Acct> | ||
implements _$$_AcctCopyWith<$Res> { | ||
__$$_AcctCopyWithImpl(_$_Acct _value, $Res Function(_$_Acct) _then) | ||
: super(_value, _then); | ||
|
||
@pragma('vm:prefer-inline') | ||
@override | ||
$Res call({ | ||
Object? host = null, | ||
Object? username = null, | ||
}) { | ||
return _then(_$_Acct( | ||
host: null == host | ||
? _value.host | ||
: host // ignore: cast_nullable_to_non_nullable | ||
as String, | ||
username: null == username | ||
? _value.username | ||
: username // ignore: cast_nullable_to_non_nullable | ||
as String, | ||
)); | ||
} | ||
} | ||
|
||
/// @nodoc | ||
@JsonSerializable() | ||
class _$_Acct extends _Acct { | ||
const _$_Acct({required this.host, required this.username}) : super._(); | ||
|
||
factory _$_Acct.fromJson(Map<String, dynamic> json) => _$$_AcctFromJson(json); | ||
|
||
@override | ||
final String host; | ||
@override | ||
final String username; | ||
|
||
@override | ||
bool operator ==(dynamic other) { | ||
return identical(this, other) || | ||
(other.runtimeType == runtimeType && | ||
other is _$_Acct && | ||
(identical(other.host, host) || other.host == host) && | ||
(identical(other.username, username) || | ||
other.username == username)); | ||
} | ||
|
||
@JsonKey(ignore: true) | ||
@override | ||
int get hashCode => Object.hash(runtimeType, host, username); | ||
|
||
@JsonKey(ignore: true) | ||
@override | ||
@pragma('vm:prefer-inline') | ||
_$$_AcctCopyWith<_$_Acct> get copyWith => | ||
__$$_AcctCopyWithImpl<_$_Acct>(this, _$identity); | ||
|
||
@override | ||
Map<String, dynamic> toJson() { | ||
return _$$_AcctToJson( | ||
this, | ||
); | ||
} | ||
} | ||
|
||
abstract class _Acct extends Acct { | ||
const factory _Acct( | ||
{required final String host, required final String username}) = _$_Acct; | ||
const _Acct._() : super._(); | ||
|
||
factory _Acct.fromJson(Map<String, dynamic> json) = _$_Acct.fromJson; | ||
|
||
@override | ||
String get host; | ||
@override | ||
String get username; | ||
@override | ||
@JsonKey(ignore: true) | ||
_$$_AcctCopyWith<_$_Acct> get copyWith => throw _privateConstructorUsedError; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.