import { double } from "../dart" ; import { Color } from "../dart-ui/color" ; import { BoxBorder } from "./box-border" ; import { BorderSide } from "./border-side" ; import assert from "assert" ; /**
 * https://api.flutter.dev/flutter/painting/Border-class.html
 */ export class Border extends BoxBorder { top : BorderSide ; right : BorderSide ; bottom : BorderSide ; left : BorderSide ; /**
     * https://api.flutter.dev/flutter/painting/Border/Border.html
     */ constructor ( { top , right , bottom , left , } ) { super ( ) ; assert ( top != null ) ; assert ( right != null ) ; assert ( bottom != null ) ; assert ( left != null ) ; this . top = top ; this . right = right ; this . bottom = bottom ; this . left = left ; } param args returns static all ( { color = Color . fromHex ( "#FFFFFF" ) , width = 1 , } ) { const args = { color , width , } ; return new Border ( { top : new BorderSide ( { color : args . color , width : args . width } ) , left : new BorderSide ( { color : args . color , width : args . width } ) , right : new BorderSide ( { color : args . color , width : args . width } ) , bottom : new BorderSide ( { color : args . color , width : args . width } ) , } ) . extendWithFactory ( "all" ) . overrideArguments ( args ) ; } param args returns static fromBorderSide ( args ) { assert ( args . side != null ) ; return new Border ( { top : args . side , left : args . side , right : args . side , bottom : args . side , } ) . extendWithFactory ( "fromBorderSide" ) . overrideArguments ( args ) ; } param args returns static symmetric ( { vertical = BorderSide . none , horizontal = BorderSide . none , } ) { assert ( vertical != null ) ; assert ( horizontal != null ) ; return new Border ( { top : vertical , left : horizontal , right : horizontal , bottom : vertical , } ) . extendWithFactory ( "symmetric" ) . overrideArguments ( { vertical , horizontal , } ) ; } }