jackfrost13 / observer-pattern

0 stars 1 forks source link

Function declaration #3

Closed raveesh-me closed 6 years ago

raveesh-me commented 6 years ago

https://github.com/jackfrost13/observer-pattern/blob/7d06046d335df2e9cc39da0faa33b32463f3d0c9/Observer.dart#L3

you don't really need the {} just end it with ;

raveesh-me commented 6 years ago

recommended reading: https://www.dartlang.org/guides/language/effective-dart/usage#do-use--instead-of--for-empty-constructor-bodies

try it with function see if it works. Let me know if it doesent

raveesh-me commented 6 years ago

I recall it doesn't. No need to change anything.