detailsAs<DetailType> method
Returns implementation-specific details when they have type DetailType.
Implementation
DetailType? detailsAs<DetailType>() {
final details = implementationDetails;
return details is DetailType ? details : null;
}