Block class

Available extensions

Constructors

Block({String? id, Struct? fields, Block_Restrictions? restrictions, Iterable<String>? childrenIds, String? backgroundColor, Block_Align? align, Block_VerticalAlign? verticalAlign, Block_Content_Smartblock? smartblock, Block_Content_Text? text, Block_Content_File? file, Block_Content_Layout? layout, Block_Content_Div? div, Block_Content_Bookmark? bookmark, Block_Content_Icon? icon, Block_Content_Link? link, Block_Content_Dataview? dataview, Block_Content_Relation? relation, Block_Content_FeaturedRelations? featuredRelations, Block_Content_Latex? latex, Block_Content_TableOfContents? tableOfContents, Block_Content_Table? table, Block_Content_TableColumn? tableColumn, Block_Content_TableRow? tableRow, Block_Content_Widget? widget, Block_Content_Chat? chat})
factory
Block.fromBuffer(List<int> data, [ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY])
factory
Block.fromJson(String json, [ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY])
factory

Properties

align ↔ Block_Align
getter/setter pair
backgroundColor ↔ String
getter/setter pair
bookmark ↔ Block_Content_Bookmark
getter/setter pair
chat ↔ Block_Content_Chat
getter/setter pair
childrenIds → PbList<String>
no setter
dataview ↔ Block_Content_Dataview
getter/setter pair
div ↔ Block_Content_Div
getter/setter pair
featuredRelations ↔ Block_Content_FeaturedRelations
getter/setter pair
fields ↔ Struct
getter/setter pair
file ↔ Block_Content_File
getter/setter pair
hashCode → int
Calculates a hash code based on the contents of the protobuf.
no setterinherited
icon ↔ Block_Content_Icon
getter/setter pair
id ↔ String
getter/setter pair
info_ → BuilderInfo
no setter
isFrozen → bool
Returns true if this message is marked read-only. Otherwise false.
no setterinherited
latex ↔ Block_Content_Latex
getter/setter pair
layout ↔ Block_Content_Layout
getter/setter pair
getter/setter pair
relation ↔ Block_Content_Relation
getter/setter pair
restrictions ↔ Block_Restrictions
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
smartblock ↔ Block_Content_Smartblock
getter/setter pair
table ↔ Block_Content_Table
getter/setter pair
tableColumn ↔ Block_Content_TableColumn
getter/setter pair
tableOfContents ↔ Block_Content_TableOfContents
getter/setter pair
tableRow ↔ Block_Content_TableRow
getter/setter pair
text ↔ Block_Content_Text
getter/setter pair
unknownFields → UnknownFieldSet
no setterinherited
verticalAlign ↔ Block_VerticalAlign
getter/setter pair
widget ↔ Block_Content_Widget
getter/setter pair

Methods

addExtension(Extension extension, Object? value) → void
Adds an extension field value to a repeated field.
inherited
check() → void
Throws a StateError if the message has required fields without a value.
inherited
clear() → void
Clears all data that was set in this message.
inherited
clearAlign() → void
clearBackgroundColor() → void
clearBookmark() → void
clearChat() → void
clearContent() → void
clearDataview() → void
clearDiv() → void
clearExtension(Extension extension) → void
Clears an extension field and also removes the extension.
inherited
clearFeaturedRelations() → void
clearField(int tagNumber) → void
Clears the contents of a given field.
inherited
clearFields() → void
clearFile() → void
clearIcon() → void
clearId() → void
clearLatex() → void
clearLayout() → void
clearRelation() → void
clearRestrictions() → void
clearSmartblock() → void
clearTable() → void
clearTableColumn() → void
clearTableOfContents() → void
clearTableRow() → void
clearText() → void
clearVerticalAlign() → void
clearWidget() → void
clone() → Block
Creates a deep copy of the fields in this message.
copyWith(void updates(Block)) → Block
Apply updates to a copy of this message.
createEmptyInstance() → Block
Creates an empty instance of the same message type as this.
deepCopy() → T

Available on T, provided by the GeneratedMessageGenericExtensions extension

Returns a writable deep copy of this message.
ensureBookmark() → Block_Content_Bookmark
ensureChat() → Block_Content_Chat
ensureDataview() → Block_Content_Dataview
ensureDiv() → Block_Content_Div
ensureFeaturedRelations() → Block_Content_FeaturedRelations
ensureFields() → Struct
ensureFile() → Block_Content_File
ensureIcon() → Block_Content_Icon
ensureLatex() → Block_Content_Latex
ensureLayout() → Block_Content_Layout
ensureRelation() → Block_Content_Relation
ensureRestrictions() → Block_Restrictions
ensureSmartblock() → Block_Content_Smartblock
ensureTable() → Block_Content_Table
ensureTableColumn() → Block_Content_TableColumn
ensureTableOfContents() → Block_Content_TableOfContents
ensureTableRow() → Block_Content_TableRow
ensureText() → Block_Content_Text
ensureWidget() → Block_Content_Widget
extensionsAreInitialized() → bool
inherited
freeze() → GeneratedMessage
Make this message read-only.
inherited
getDefaultForField(int tagNumber) → dynamic
Returns the default value for the given field.
inherited
getExtension(Extension extension) → dynamic
Returns the value of extension.
inherited
getField(int tagNumber) → dynamic
Returns the value of the field associated with tagNumber, or the default value if it is not set.
inherited
getFieldOrNull(int tagNumber) → dynamic
Returns the value of a field, ignoring any defaults.
inherited
getTagNumber(String fieldName) → int?
inherited
hasAlign() → bool
hasBackgroundColor() → bool
hasBookmark() → bool
hasChat() → bool
hasDataview() → bool
hasDiv() → bool
hasExtension(Extension extension) → bool
Returns true if a value of extension is present.
inherited
hasFeaturedRelations() → bool
hasField(int tagNumber) → bool
Whether this message has a field associated with tagNumber.
inherited
hasFields() → bool
hasFile() → bool
hasIcon() → bool
hasId() → bool
hasLatex() → bool
hasLayout() → bool
hasRelation() → bool
hasRequiredFields() → bool
Whether the message has required fields.
inherited
hasRestrictions() → bool
hasSmartblock() → bool
hasTable() → bool
hasTableColumn() → bool
hasTableOfContents() → bool
hasTableRow() → bool
hasText() → bool
hasVerticalAlign() → bool
hasWidget() → bool
isInitialized() → bool
Whether all required fields in the message and embedded messages are set.
inherited
mergeFromBuffer(List<int> input, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges serialized protocol buffer data into this message.
inherited
mergeFromCodedBufferReader(CodedBufferReader input, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Same as mergeFromBuffer, but takes a CodedBufferReader input.
inherited
mergeFromJson(String data, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges field values from data, a JSON object, encoded as described by GeneratedMessage.writeToJson.
inherited
mergeFromJsonMap(Map<String, dynamic> json, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges field values from a JSON object represented as a Dart map.
inherited
mergeFromMessage(GeneratedMessage other) → void
Merges the contents of the other into this message.
inherited
mergeFromProto3Json(Object? json, {TypeRegistry typeRegistry = const TypeRegistry.empty(), bool ignoreUnknownFields = false, bool supportNamesWithUnderscores = true, bool permissiveEnums = false}) → void
Merges field values from json, a JSON object using proto3 encoding.
inherited
mergeUnknownFields(UnknownFieldSet unknownFieldSet) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(void updates(T)) → T

Available on T, provided by the GeneratedMessageGenericExtensions extension

Apply updates to a copy of this message.
setExtension(Extension extension, Object value) → void
Sets the value of a non-repeated extension field to value.
inherited
setField(int tagNumber, Object value) → void
Sets the value of a field by its tagNumber.
inherited
toBuilder() → GeneratedMessage
Creates a writable, shallow copy of this message.
inherited
toDebugString() → String
Returns a String representation of this message.
inherited
toProto3Json({TypeRegistry typeRegistry = const TypeRegistry.empty()}) → Object?
Returns an Object representing Proto3 JSON serialization of this.
inherited
toString() → String
Returns a String representation of this message.
inherited
whichContent() → Block_Content_
writeToBuffer() → Uint8List
Serialize the message as the protobuf binary format.
inherited
writeToCodedBufferWriter(CodedBufferWriter output) → void
Same as writeToBuffer, but serializes to the given CodedBufferWriter.
inherited
writeToJson() → String
Returns a JSON string that encodes this message.
inherited
writeToJsonMap() → Map<String, dynamic>
Returns the JSON encoding of this message as a Dart Map.
inherited

Operators

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

Static Methods

create() → Block
getDefault() → Block