compare getWidget to asWidget