ReplitCodePart class

Fenced code, rendered by a ReplitCodeBlock.

Inheritance

Constructors

ReplitCodePart(String code, {String? language, String? filename})
const

Properties

code → String
The source, verbatim.
final
filename → String?
The block's header label, e.g. a file hint beside the fence. Null falls back to language.
final
hashCode → int
The hash code for this object.
no setterinherited
language → String?
ReplitCodeLanguage id or alias — usually the fence info string, e.g. 'dart'. Null or unknown renders plain.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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