videoBlockNode function

Node videoBlockNode({
  1. String? src,
  2. double? width,
})

Implementation

Node videoBlockNode({String? src, double? width}) {
  final attributes = {
    VideoBlockKeys.url: src,
    VideoBlockKeys.width: width ?? 320,
  };
  return Node(type: VideoBlockKeys.type, attributes: attributes);
}