2016-04-22 12:05:38 -07:00
|
|
|
import './interfaces.dart';
|
|
|
|
|
bool hasLifecycleHook(String name, Object obj) {
|
|
|
|
|
if (name == "routerOnActivate") return obj is OnActivate;
|
2016-04-29 18:05:06 -07:00
|
|
|
if (name == "routerCanDeactivate") return obj is CanDeactivate;
|
2016-04-22 12:05:38 -07:00
|
|
|
return false;
|
|
|
|
|
}
|