ogImage method

  1. @override
dynamic ogImage({
  1. required String ogImage,
})
override

Definition of og:image meta tag attribute https://ogp.me https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/The_head_metadata_in_HTML#other_types_of_metadata Add web mata data of ogImage attribute Implement the interface

Implementation

@override
ogImage(
    {
    /// Definition of [og:image] meta tag attribute
    required String ogImage}) {
  /// Call the javascript function with needed attributes
  js.context.callMethod('seoOpenGraphJS', ['og:image', ogImage]);
}