This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"lat": 38.75, | |
"lon": 35.5, | |
"timezone": "Europe/Istanbul", | |
"timezone_offset": 10800, | |
"hourly": [ | |
{ | |
"dt": 1591891200, | |
"temp": 289.15, | |
"feels_like": 287.9, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"lat": 38.75, | |
"lon": 35.5, | |
"timezone": "Europe/Istanbul", | |
"timezone_offset": 10800, | |
"daily": [ | |
{ | |
"dt": 1591952400, | |
"sunrise": 1591927960, | |
"sunset": 1591981399, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
List<A> baseList = []; | |
baseList.add(A(value: 1, description: 'Alperen Arıcı')); | |
baseList.add(A(value: 2, description: 'İsmail Özalp')); | |
baseList.add(A(value: 3, description: 'Teyyihan Aksu')); | |
baseList.add(A(value: 4, description: 'Alperen Ünal')); | |
List<A> secondList = []; | |
for (final model in baseList) { | |
A cloningModel = A.clone(model); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person { | |
var name: String | |
init(name: String) { | |
self.name = name | |
} | |
func printMyName() { fatalError("Error here 😈") } | |
func printMyAge(age: Int) { } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol MyPerson { | |
var name: String { get set } | |
static var surname: String { get set } | |
init(name: String) | |
func printMyName() | |
} | |
extension MyPerson { | |
func myOptionalFunction() { | |
print("Does not have to be overridden (From Protocol)") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@objc protocol ThisProtocol { | |
@objc optional var name: String { get } | |
@objc optional func optionalFunc() -> String | |
} |