Workaround for dart2js translation issue: identical(this.runtimeType, other.runtimeType) does not translate properly