serde-generate/runtime/dart/serde/unit.dart (13 lines of code) (raw):
// Copyright (c) Facebook, Inc. and its affiliates
// SPDX-License-Identifier: MIT OR Apache-2.0
part of serde;
@immutable
class Unit {
const Unit();
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other.runtimeType != runtimeType) return false;
return other is Unit;
}
@override
int get hashCode => 7;
}