Metadata class
basic nostr metadata
Constructors
- Metadata({String pubKey = "", String? name, String? displayName, String? picture, String? banner, String? website, String? about, String? nip05, String? lud16, String? lud06, int? updatedAt, int? refreshedTimestamp})
- basic metadata nostr
- 
          Metadata.fromJson(Map<String, dynamic> json)
- convert from json
Properties
- about ↔ String?
- 
  about
  getter/setter pair
- 
  banner
  getter/setter pair
- cleanNip05 → String?
- 
  clean nip05
  no setter
- displayName ↔ String?
- 
  displayName
  getter/setter pair
- hashCode → int
- 
  The hash code for this object.
  no setteroverride
- lud06 ↔ String?
- 
  lud06
  getter/setter pair
- lud16 ↔ String?
- 
  lud16
  getter/setter pair
- name ↔ String?
- 
  name
  getter/setter pair
- nip05 ↔ String?
- 
  nip05
  getter/setter pair
- picture ↔ String?
- 
  picture
  getter/setter pair
- pubKey ↔ String
- 
  public key
  getter/setter pair
- refreshedTimestamp ↔ int?
- 
  refreshed timestamp
  getter/setter pair
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- 
  sources
  ↔ List<String> 
- 
  
  getter/setter pair
- updatedAt ↔ int?
- 
  updated at
  getter/setter pair
- website ↔ String?
- 
  website
  getter/setter pair
Methods
- 
  copyWith({String? pubKey, String? name, String? displayName, String? picture, String? banner, String? website, String? about, String? nip05, String? lud16, String? lud06, int? updatedAt, int? refreshedTimestamp, List< String> ? sources}) → Metadata
- 
  getName() → String 
- return display name if set, otherwise name if set, otherwise pubKey
- 
  matchesSearch(String str) → bool 
- does it match while searching for given string
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toEvent() → Nip01Event 
- convert to nip01 event
- 
  toFullJson() → Map< String, dynamic> 
- convert to json (full all fields)
- 
  toJson() → Map< String, dynamic> 
- convert from json (except pub_key)
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  override
Static Methods
- 
  fromEvent(Nip01Event event) → Metadata 
- convert from nip01 event