debugParentDataType property

Type debugParentDataType

Returns the Type of ParentData that this element has been configured for.

This is only available in debug mode. It will throw in profile and release modes.

Implementation

Type get debugParentDataType {
  Type? type;
  assert(() {
    type = T;
    return true;
  }());
  if (type != null) {
    return type!;
  }
  throw UnsupportedError('debugParentDataType is only supported in debug builds');
}