You must modify the hashValues method call as it has been replaced by Object.hash:
int get hashCode => Object.hash(bundle, name);