BorderRadius class Null safety

Implementers
Annotations
  • @freezed

Constructors

BorderRadius.all(Radius radius)
const
factory
BorderRadius.circular(double radius)
const
factory
BorderRadius.fromJson(Map<String, Object?> json)
factory
BorderRadius.horizontal({@Default(Radius.zero) Radius left, @Default(Radius.zero) Radius right})
const
factory
BorderRadius.only({Radius? topLeft, Radius? topRight, Radius? bottomLeft, Radius? bottomRight})
const
factory
BorderRadius.vertical({@Default(Radius.zero) Radius top, @Default(Radius.zero) Radius bottom})
const
factory

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

map<TResult extends Object?>({required TResult all(BorderRadiusAll value), required TResult circular(BorderRadiusCircular value), required TResult vertical(BorderRadiusVertical value), required TResult horizontal(BorderRadiusHorizontal value), required TResult only(BorderRadiusOnly value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult? all(BorderRadiusAll value)?, TResult? circular(BorderRadiusCircular value)?, TResult? vertical(BorderRadiusVertical value)?, TResult? horizontal(BorderRadiusHorizontal value)?, TResult? only(BorderRadiusOnly value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult all(BorderRadiusAll value)?, TResult circular(BorderRadiusCircular value)?, TResult vertical(BorderRadiusVertical value)?, TResult horizontal(BorderRadiusHorizontal value)?, TResult only(BorderRadiusOnly value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult all(Radius radius)?, TResult circular(double radius)?, TResult vertical(Radius top, Radius bottom)?, TResult horizontal(Radius left, Radius right)?, TResult only(Radius? topLeft, Radius? topRight, Radius? bottomLeft, Radius? bottomRight)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult all(Radius radius), required TResult circular(double radius), required TResult vertical(Radius top, Radius bottom), required TResult horizontal(Radius left, Radius right), required TResult only(Radius? topLeft, Radius? topRight, Radius? bottomLeft, Radius? bottomRight)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult? all(Radius radius)?, TResult? circular(double radius)?, TResult? vertical(Radius top, Radius bottom)?, TResult? horizontal(Radius left, Radius right)?, TResult? only(Radius? topLeft, Radius? topRight, Radius? bottomLeft, Radius? bottomRight)?}) → TResult?
@optionalTypeArgs, inherited

Operators

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

Constants

zero → const BorderRadius
BorderRadius.all(Radius.zero)