Tag

Equatable

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 7, 2024 · Mobile Development

Implementing Data Classes and Sealed Classes in Dart (Comparison with Kotlin)

This article explains how to replicate Kotlin's data class and sealed class features in Dart for Flutter development, covering manual implementations, popular packages such as freezed, equatable, and built_value, as well as the new sealed class support introduced in Dart 3.0.

Data ClassEquatableFreezed
0 likes · 14 min read
Implementing Data Classes and Sealed Classes in Dart (Comparison with Kotlin)
Liulishuo Tech Team
Liulishuo Tech Team
Apr 13, 2018 · Fundamentals

Understanding Compiler Synthesis of Equatable and Hashable in Swift 4.1

This article explains how Swift 4.1's compiler can automatically synthesize Equatable and Hashable implementations, the necessary conditions, examples of enums and structs, the limitations of synthesis, and how developers can override or supplement the generated code for better performance and correctness.

EquatableHashableProgramming
0 likes · 8 min read
Understanding Compiler Synthesis of Equatable and Hashable in Swift 4.1