List of functions with defined signature in Dart -
in dart, possible have list of functions have defined signature? i'm looking like
list<(int, int) -> int> listoffunctions;
which of course wrong.
i can do
list<function> listoffunctions;
but don't know signature.
thanks hints.
just create typedef function
typedef int myfunction(int a, int b); list<myfunction> listoffunctions;
Comments
Post a Comment