buildView method
Omxplayer can only have one view, which is a difference to most other video player implementations.
Implementation
@override
/// Omxplayer can only have one view, which is a difference to most other
/// video player implementations.
Widget buildView(int textureId) {
return EnsureUnique(
strict: this._strictViewBehaviour,
identity: _OmxplayerKey(textureId),
child: OmxplayerView(
key: _OmxplayerKey(textureId),
playerId: textureId,
),
);
}