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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -