ProfileHeader class Null safety
Widget defining the Profile Page Header
Uses NetworkImage widgets to display Profile image and Banner image and displays data such as display name, description and karma amount
- Inheritance
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ProfileHeader
Constructors
- ProfileHeader({required String bannerPicture, required String profilePicture, required String fullName, required String displayName, required String profileDesc, required int karmaNb, required DateTime createdDate, required int nbFollowers})
- Constructs a new ProfileHeader widget
Properties
-
Banner Picture url
final
- createdDate → DateTime
-
Date exposing when the account has been created
final
- displayName → String
-
Account display name
final
- fullName → String
-
Account fullname
final
- hashCode → int
-
The hash code for this object. [...]
@nonVirtual, read-only, inherited
- karmaNb → int
-
Karma amount value
final
- key → Key?
-
Controls how one widget replaces another widget in the tree. [...]
final, inherited
- nbFollowers → int
-
Number of followers
final
- profileDesc → String
-
Profile Description
final
- profilePicture → String
-
Profile Picture url
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget. [...]
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree. [...]
inherited
-
daysBetween(
DateTime from, DateTime to) → int - Compute numbers of days between to DateTime objects
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children. [...]@protected, inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node. [...]
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep. [...]
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object. [...]
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants. [...]
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object. [...]
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
@nonVirtual, inherited