$getRuntimeType method

  1. @override
int $getRuntimeType(
  1. Runtime runtime
)
inherited

Index of the class Type in the runtime dictionary. By definition can change from run to run, so it's customary to use Runtime.lookupType in implementations.

Implementation

@override
int $getRuntimeType(Runtime runtime) {
  final data = Runtime.bridgeData[this]!;
  return data.subclass?.$getRuntimeType(runtime) ?? data.$runtimeType;
}