GooglePreferredSource class

Botão "Adicione o <veículo> como fonte preferencial no Google". Abre o popup do Google para o leitor marcar o site como fonte preferida nas buscas. Identifique o veículo por publicationId (Google News Publisher Center) ou por domain (ex.: tribunademinas.com.br); se vier os dois, vale o ID.

GooglePreferredSource(name: 'Tribuna de Minas', domain: 'tribunademinas.com.br')
GooglePreferredSource(name: 'Tribuna de Minas', publicationId: 'CAowxxxx')
Inheritance

Constructors

GooglePreferredSource({required String name, String? publicationId, String? domain, String lang = 'pt-BR', String? trackEvent, Key? key})
const

Properties

domain → String?
Domínio do site, sem https:// (ex.: meusite.com.br).
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one component replaces another component in the tree.
finalinherited
lang → String
final
name → String
Nome exibido no botão.
final
publicationId → String?
ID da publicação no Google News (publication_id).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trackEvent → String?
Evento de flenx.track no clique. Nulo = não rastreia.
final
url → String
URL final do popup.
no setter

Methods

build(BuildContext context) → Component
Describes the part of the user interface represented by this component.
override
createElement() → Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) → bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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