This file contains hidden or 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
abstract base class Equatable { | |
const Equatable(); | |
List<Object?> get props; | |
@override | |
bool operator ==(Object other) { | |
return identical(this, other) || | |
other is Equatable && | |
runtimeType == other.runtimeType && |
This file contains hidden or 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
(T?, Object?) tryCatch<T extends Object>(T Function() function) { | |
try { | |
final result = function.call(); | |
return (result, null); | |
} catch (error) { | |
return (null, error); | |
} | |
} | |
Future<(T?, Object?)> tryCatchAsync<T extends Object>( |
This file contains hidden or 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
.PHONY: help cleanup run-build-runner run-ios build-ios build-android build-android-apk | |
.DEFAULT_GOAL := help | |
BLUE := \033[34m | |
RESET := \033[0m | |
help: ## Show this help message | |
@echo 'Usage:' | |
@echo ' make [target]' | |
@echo '' |