HlsSegmentReachability class
Reachability diagnostics for one HLS media segment URL.
Constructors
- HlsSegmentReachability({bool checked = false, String? url, String? method, bool isReachable = false, int? statusCode, String? contentType, int? contentLength, int? responseTimeMs, String? errorType, String? errorMessage})
-
Creates HLS segment reachability diagnostics.
const
-
HlsSegmentReachability.fromMap(Map<
Object?, Object?> map) -
Creates reachability diagnostics from a map using stable field names.
factory
Properties
- checked → bool
-
Whether a segment reachability request was attempted.
final
- contentLength → int?
-
Segment response content length, when available.
final
- contentType → String?
-
Segment response content type, when available.
final
- errorMessage → String?
-
Human-readable diagnostic error message, when available.
final
- errorType → String?
-
Stable diagnostic error type, when the check failed before a response.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isReachable → bool
-
Whether the segment responded with a successful HTTP status.
final
- method → String?
-
HTTP method used for the check.
final
- responseTimeMs → int?
-
Segment check response time in milliseconds.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
HTTP status code returned by the segment check.
final
- url → String?
-
Segment URL that was checked.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> - Serializes reachability diagnostics to a map using stable field names.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited