g()('al') in dart

Implemented g()('al') in dart using closures.