GoogleCastPlayerTexts class

Text configuration for customizing text labels in the ExpandedGoogleCastPlayerController widget.

This class allows you to customize all text content displayed in the expanded player, making it easy to support internationalization or custom branding.

Example usage:

ExpandedGoogleCastPlayerController(
  texts: ExpandedGoogleCastPlayerTexts(
    nowPlaying: 'Reproduciendo ahora',
    unknownTitle: 'Título desconocido',
    castingToDevice: (deviceName) => 'Transmitiendo a $deviceName',
    noCaptionsAvailable: 'Sin subtítulos disponibles',
    captionsOff: 'Desactivar',
    trackFallback: (trackId) => 'Pista $trackId',
  ),
)

Constructors

GoogleCastPlayerTexts.new({String unknownTitle = 'Unknown Title', String nowPlaying = 'Now Playing', String castingToDevice(String deviceName) = _defaultCastingToDevice, String noCaptionsAvailable = 'No captions available', String captionsOff = 'Off', String trackFallback(int trackId) = _defaultTrackFallback})
Creates a new GoogleCastPlayerTexts.
const

Properties

captionsOff String
Text displayed for the option to turn off captions
final
castingToDevice String Function(String deviceName)
Function that returns text showing which device is being cast to. The deviceName parameter contains the friendly name of the cast device.
final
hashCode int
The hash code for this object.
no setterinherited
noCaptionsAvailable String
Text displayed when no caption tracks are available
final
nowPlaying String
Text displayed in the app bar header
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trackFallback String Function(int trackId)
Function that returns fallback text for caption track names. The trackId parameter contains the numeric ID of the track.
final
unknownTitle String
Text displayed when media title is unknown or empty
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited