Created
December 13, 2019 07:00
-
-
Save f3ath/baca950de765a24aeef2fdc61f76fbef to your computer and use it in GitHub Desktop.
Dart extenston on typedef
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
extension Nullable<U, V> on _Fun<U, V> { | |
U nullable(V v) => v == null ? null : this(v); | |
} | |
typedef U _Fun<U, V>(V v); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment