detailsAs<DetailType> method

DetailType? detailsAs<DetailType>()

Returns implementation-specific details when they have type DetailType.

Implementation

DetailType? detailsAs<DetailType>() {
  final details = implementationDetails;
  return details is DetailType ? details : null;
}