YoutubeNativePlayer class

Inheritance

Constructors

YoutubeNativePlayer({@required String source, @required BuildContext context, @required YoutubeQuality quality, double aspectRatio = 16 / 9, double width, bool isLive = false, bool autoPlay = true, ControlsColor controlsColor, Duration startAt, bool showThumbnail = false, bool keepScreenOn = true, bool showVideoProgressbar = true, bool startFullScreen = false, bool controlsActiveBackgroundOverlay = false, Duration controlsTimeOut = const Duration(seconds: 3), YoutubePlayerMode playerMode = YoutubePlayerMode.DEFAULT, ErrorCallback onError, NumberCallback onVideoStarted, VoidCallback onVideoEnded, YPCallBack callbackController, bool switchFullScreenOnLongPress = false, bool hideShareButton = false, bool reactToOrientationChange = true, bool loop = false, VideoOrientations videoOrientations = const VideoOrientations()})

Properties

aspectRatio double
final
autoPlay bool
final
callbackController YPCallBack
final
context BuildContext
final
controlsActiveBackgroundOverlay bool
final
controlsColor ControlsColor
final
controlsTimeOut Duration
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
hideShareButton bool
final
isLive bool
final
keepScreenOn bool
final
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
loop bool
final
onError ErrorCallback
final
onVideoEnded VoidCallback
final
onVideoStarted NumberCallback
final
playerMode YoutubePlayerMode
final
quality YoutubeQuality
final
reactToOrientationChange bool
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
showThumbnail bool
final
showVideoProgressbar bool
final
source String
final
startAt Duration
final
startFullScreen bool
final
switchFullScreenOnLongPress bool
final
videoOrientations VideoOrientations
final
width double
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree. [...]
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object. [...]
inherited
toStringDeep({String prefixLineOne = '', String prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants. [...]
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object. [...]
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
@nonVirtual, inherited