Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
shiosyakeyakini-info committed Nov 26, 2023
1 parent b33cd8d commit 8279c82
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 4 additions & 2 deletions lib/src/data/join_misskey_instances.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,8 @@ mixin _$JoinMisskeyInstanceInfo {
double get value => throw _privateConstructorUsedError;
bool get banner => throw _privateConstructorUsedError;
bool get background => throw _privateConstructorUsedError;
bool get icon => throw _privateConstructorUsedError;
bool get icon =>
throw _privateConstructorUsedError; // ignore: invalid_annotation_target
@JsonKey(name: "nodeinfo")
JoinMisskeyNodeInfo? get nodeInfo => throw _privateConstructorUsedError;

Expand Down Expand Up @@ -685,6 +686,7 @@ class _$JoinMisskeyInstanceInfoImpl implements _JoinMisskeyInstanceInfo {
@override
@JsonKey()
final bool icon;
// ignore: invalid_annotation_target
@override
@JsonKey(name: "nodeinfo")
final JoinMisskeyNodeInfo? nodeInfo;
Expand Down Expand Up @@ -779,7 +781,7 @@ abstract class _JoinMisskeyInstanceInfo implements JoinMisskeyInstanceInfo {
bool get background;
@override
bool get icon;
@override
@override // ignore: invalid_annotation_target
@JsonKey(name: "nodeinfo")
JoinMisskeyNodeInfo? get nodeInfo;
@override
Expand Down
4 changes: 3 additions & 1 deletion lib/src/data/users/users_show_request.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ UsersShowByUserNameRequest _$UsersShowByUserNameRequestFromJson(

/// @nodoc
mixin _$UsersShowByUserNameRequest {
// ignore: invalid_annotation_target
@JsonKey(name: "username")
String get userName => throw _privateConstructorUsedError;
String? get host => throw _privateConstructorUsedError;
Expand Down Expand Up @@ -409,6 +410,7 @@ class _$UsersShowByUserNameRequestImpl implements _UsersShowByUserNameRequest {
Map<String, dynamic> json) =>
_$$UsersShowByUserNameRequestImplFromJson(json);

// ignore: invalid_annotation_target
@override
@JsonKey(name: "username")
final String userName;
Expand Down Expand Up @@ -458,7 +460,7 @@ abstract class _UsersShowByUserNameRequest
factory _UsersShowByUserNameRequest.fromJson(Map<String, dynamic> json) =
_$UsersShowByUserNameRequestImpl.fromJson;

@override
@override // ignore: invalid_annotation_target
@JsonKey(name: "username")
String get userName;
@override
Expand Down
7 changes: 4 additions & 3 deletions lib/src/misskey_drive.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import 'package:misskey_dart/src/services/api_service.dart';
class MisskeyDrive {
final MisskeyDriveFiles files;
final MisskeyDriveFolders folders;
final ApiService _apiService;

MisskeyDrive(ApiService apiService)
: files = MisskeyDriveFiles(apiService),
folders = MisskeyDriveFolders(apiService);
MisskeyDrive(this._apiService)
: files = MisskeyDriveFiles(_apiService),
folders = MisskeyDriveFolders(_apiService);

/// ドライブにあるファイルの一覧を取得します。
Future<Iterable<DriveFile>> stream(DriveStreamRequest request) async {
Expand Down

0 comments on commit 8279c82

Please sign in to comment.