Last active
November 29, 2024 08:43
-
-
Save tjarvstrand/024a1d4b8380790585512a223736e26e to your computer and use it in GitHub Desktop.
Identity comparison
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
extension type FillInFileId(String value) {} | |
class FileUploadStatus { | |
FileUploadStatus( | |
this.fileId, | |
this.fileName, | |
this.isUploading, | |
); | |
final FillInFileId fileId; | |
final String fileName; | |
final bool isUploading; | |
} | |
void main() { | |
final a = FileUploadStatus(FillInFileId('1'), 'a', false); | |
print(a == a); | |
final b = FileUploadStatus(FillInFileId('1'), 'a', false); | |
print(a == b); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment