Removed old dart syntax for declaring functions.