ReporterStats class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
-
ReporterStats.new({@Default('tools.ozone.moderation.defs#reporterStats') String $type, required String did, required int accountReportCount, required int recordReportCount, required int reportedAccountCount, required int reportedRecordCount, required int takendownAccountCount, required int takendownRecordCount, required int labeledAccountCount, required int labeledRecordCount, Map<
String, dynamic> ? $unknown}) -
constfactory
-
ReporterStats.fromJson(Map<
String, Object?> json) -
factory
Properties
- $type → String
-
no setterinherited
-
$unknown
→ Map<
String, dynamic> ? -
no setterinherited
- accountReportCount → int
-
The total number of reports made by the user on accounts.
no setterinherited
-
copyWith
→ $ReporterStatsCopyWith<
ReporterStats> -
Create a copy of ReporterStats
with the given fields replaced by the non-null parameter values.
no setterinherited
- did → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- labeledAccountCount → int
-
The total number of accounts labeled as a result of the user's reports.
no setterinherited
- labeledRecordCount → int
-
The total number of records labeled as a result of the user's reports.
no setterinherited
- recordReportCount → int
-
The total number of reports made by the user on records.
no setterinherited
- reportedAccountCount → int
-
The total number of accounts reported by the user.
no setterinherited
- reportedRecordCount → int
-
The total number of records reported by the user.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- takendownAccountCount → int
-
The total number of accounts taken down as a result of the user's reports.
no setterinherited
- takendownRecordCount → int
-
The total number of records taken down as a result of the user's reports.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_ReporterStats value)) → TResult -
Available on ReporterStats, provided by the ReporterStatsPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ReporterStats value)?) → TResult? -
Available on ReporterStats, provided by the ReporterStatsPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_ReporterStats value)?, {required TResult orElse()}) → TResult -
Available on ReporterStats, provided by the ReporterStatsPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String $type, String did, int accountReportCount, int recordReportCount, int reportedAccountCount, int reportedRecordCount, int takendownAccountCount, int takendownRecordCount, int labeledAccountCount, int labeledRecordCount, Map< String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on ReporterStats, provided by the ReporterStatsPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ReporterStats to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String $type, String did, int accountReportCount, int recordReportCount, int reportedAccountCount, int reportedRecordCount, int takendownAccountCount, int takendownRecordCount, int labeledAccountCount, int labeledRecordCount, Map< String, dynamic> ? $unknown)) → TResult -
Available on ReporterStats, provided by the ReporterStatsPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String $type, String did, int accountReportCount, int recordReportCount, int reportedAccountCount, int reportedRecordCount, int takendownAccountCount, int takendownRecordCount, int labeledAccountCount, int labeledRecordCount, Map< String, dynamic> ? $unknown)?) → TResult? -
Available on ReporterStats, provided by the ReporterStatsPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
knownProps
→ const List<
String>